File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { PageResponse } from "../post-type"
22import type { DgSettings , Media } from "../types"
33
4- const API_ROOT = process . env . VITE_REACT_APP_WP_API ?? '/wp/wp-json'
4+ // @ts -ignore Types not available
5+ const API_ROOT = import . meta. env . VITE_REACT_APP_WP_API ?? process . env . VITE_REACT_APP_WP_API ?? '/wp/wp-json'
56const URL_MENU = API_ROOT + '/menus/v1/menus/'
67
78const URL_API_BASE = API_ROOT + '/wp/v2/'
89
910const URL_PAGE = API_ROOT + '/wp/v2/pages'
10-
11- const URL_SEARCH = API_ROOT + ( process . env . VITE_REACT_APP_WP_SEARCH_END_POINT ?? '/wp/v2/search' )
11+ // @ts -ignore
12+ const URL_SEARCH = API_ROOT + ( import . meta . env . VITE_REACT_APP_WP_SEARCH_END_POINT ?? process . env . VITE_REACT_APP_WP_SEARCH_END_POINT ?? '/wp/v2/search' )
1213
1314const URL_MEDIA = API_ROOT + '/wp/v2/media'
1415
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export default defineConfig({
2222 copyPublicDir : false ,
2323 lib : {
2424 entry : resolve ( __dirname , 'src/index.js' ) ,
25- name : '@devgateway/dvz-ui '
25+ name : '@devgateway/wp-react-lib '
2626 } ,
2727 commonjsOptions : {
2828 transformMixedEsModules : true ,
You can’t perform that action at this time.
0 commit comments