Skip to content

Commit

Permalink
add export script
Browse files Browse the repository at this point in the history
  • Loading branch information
ctwhome committed Jul 14, 2020
1 parent c1e45e2 commit 3d530ff
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ cypress/screenshots
# next
src/.next/
src/.next
src/out

dist/
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"scripts": {
"build": "next build src",
"export": "next export src",
"dev": "next src dev",
"start": "next src dev",
"start:production": "NODE_ENV=production yarn next start -p 80 src",
Expand Down
12 changes: 9 additions & 3 deletions src/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,21 @@ const withCSS = require("@zeit/next-css");
// document = infiProxy();

module.exports = withCSS({
distDir: "dist",
exportTrailingSlash: true,
cssLoaderOptions: {
localIdentName: "[name]__[local]--[hash:base64:5]",
},
cssModules: true,

publicRuntimeConfig: {
backendURL: process.env.EYRA_BACKEND_URL || "https://api.staging.eyrabenchmark.net/api/v1/",
frontendURL: process.env.EYRA_FRONTEND_URL || "https://www.eyrabenchmark.net/",
prismicEndpoint: process.env.PRISMIC_URL || "https://eyra-test.prismic.io/api/v2",
backendURL:
process.env.EYRA_BACKEND_URL ||
"https://api.staging.eyrabenchmark.net/api/v1/",
frontendURL:
process.env.EYRA_FRONTEND_URL || "https://www.eyrabenchmark.net/",
prismicEndpoint:
process.env.PRISMIC_URL || "https://eyra-test.prismic.io/api/v2",
},
serverRuntimeConfig: {
// Will only be available on the server side
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1182,10 +1182,10 @@
dependencies:
"@types/react" "*"

"@types/yup@^0.26.23":
version "0.26.23"
resolved "https://registry.npmjs.org/@types/yup/-/yup-0.26.23.tgz#00721a3b675e7609e5bcccb94234e86b754bcd04"
integrity sha512-+tipAL6prdInS/avA6QityIFBDvHnqk1Tv9L5JMEws5IZC6agymBGAoDsrPyYp42wGcktyQtYKv9kvGPEKd4Qg==
"@types/yup@^0.26.24":
version "0.26.37"
resolved "https://registry.yarnpkg.com/@types/yup/-/yup-0.26.37.tgz#7a52854ac602ba0dc969bebc960559f7464a1686"
integrity sha512-cDqR/ez4+iAVQYOwadXjKX4Dq1frtnDGV2GNVKj3aUVKVCKRvsr8esFk66j+LgeeJGmrMcBkkfCf3zk13MjV7A==

"@webassemblyjs/[email protected]":
version "1.8.5"
Expand Down Expand Up @@ -3452,9 +3452,9 @@ format@^0.2.2:
resolved "https://registry.npmjs.org/format/-/format-0.2.2.tgz#d6170107e9efdc4ed30c9dc39016df942b5cb58b"
integrity sha1-1hcBB+nv3E7TDJ3DkBbflCtctYs=

formik@^1.5.7:
formik@^1.5.8:
version "1.5.8"
resolved "https://registry.npmjs.org/formik/-/formik-1.5.8.tgz#eee8cd345effe46839bc748c7f920486f12f14b0"
resolved "https://registry.yarnpkg.com/formik/-/formik-1.5.8.tgz#eee8cd345effe46839bc748c7f920486f12f14b0"
integrity sha512-fNvPe+ddbh+7xiByT25vuso2p2hseG/Yvuj211fV1DbCjljUEG9OpgRpcb7g7O3kxHX/q31cbZDzMxJXPWSNwA==
dependencies:
create-react-context "^0.2.2"
Expand Down

0 comments on commit 3d530ff

Please sign in to comment.