Skip to content

Commit

Permalink
fix: updated build script (#2370)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran McDade authored and Fran McDade committed Feb 28, 2024
1 parent f229498 commit 1c2774e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions next/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const nextConfig = {
images: {
disableStaticImages: true,
},
output: "export",
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
// Add the alias for the peer dependency
config.resolve.alias["@emotion/react"] = path.resolve(
Expand Down
6 changes: 3 additions & 3 deletions next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"private": true,
"scripts": {
"dev": "./scripts/dev.sh data-portal && next dev",
"build-dev:data-portal": "scripts/common-build.sh data-portal dev && next build && next export -o out && npm run postbuild",
"build-prod:data-portal": "./scripts/common-build.sh data-portal prod && next build && next export -o out && npm run postbuild",
"build-dev:data-portal": "scripts/common-build.sh data-portal dev && next build && npm run postbuild",
"build-prod:data-portal": "./scripts/common-build.sh data-portal prod && next build && npm run postbuild",
"build": "next build",
"start": "next start",
"start": "npx serve out",
"lint": "next lint",
"check-format": "prettier --check .",
"format": "prettier --write .",
Expand Down

0 comments on commit 1c2774e

Please sign in to comment.