Skip to content

Commit addb980

Browse files
committed
fix: ci path for deployment
1 parent 55aff1c commit addb980

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

config/paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
1515
// single-page apps that may serve index.html for nested URLs like /todos/42.
1616
// We can't use a relative path in HTML because we don't want to load something
1717
// like /todos/42/static/js/bundle.7289d.js. We have to know the root.
18-
const publicUrlOrPath = getPublicUrlOrPath(process.env.PUBLIC_URL);
18+
const publicUrlOrPath = process.env.PUBLIC_URL;
1919

2020
const moduleFileExtensions = [
2121
'web.mjs',

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
"minify": "npx google-closure-compiler --js=index.js --js_output_file=index.min.js",
88
"build": "tsc --declaration index.ts && npm run minify",
99
"test": "jest",
10-
"start:demo": "node scripts/start.js",
11-
"build:demo": "node scripts/build.js",
10+
"start:demo": "PUBLIC_URL='/' node scripts/start.js",
11+
"build:demo": "PUBLIC_URL='/' node scripts/build.js",
12+
"build:demo:ci": "PUBLIC_URL='/context-api-dev-tools-extension/' node scripts/build.js",
1213
"test:demo": "node scripts/test.js"
1314
},
1415
"repository": {

0 commit comments

Comments
 (0)