Skip to content

Commit 3dfdf38

Browse files
committed
Fixed generating service worker before deploying.
1 parent 038d90b commit 3dfdf38

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-renderer-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"start": "next start src/",
1414
"serve": "cross-env NODE_ENV=production firebase serve",
1515
"shell": "npm run build && firebase functions:shell",
16-
"deploy": "NODE_ENV=production firebase deploy --only functions,hosting",
16+
"deploy": "NODE_ENV=production yarn buld && yarn firebase deploy --only functions,hosting",
1717
"logs": "firebase functions:log",
1818
"analyze": "ANALYZE=true next build src/",
1919
"lint": "eslint ./src",

packages/react-renderer-demo/src/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = withBundleAnalyzer(
1313
withOffline(
1414
withMDX({
1515
workboxOpts: {
16-
swDest: '../public/service-worker.js',
16+
swDest: path.resolve(__dirname, '../public/service-worker.js'),
1717
runtimeCaching: [
1818
{
1919
urlPattern: /^https?.*/,

0 commit comments

Comments
 (0)