diff --git a/.gitignore b/.gitignore index c5a82b5..46f2d0f 100644 --- a/.gitignore +++ b/.gitignore @@ -27,5 +27,6 @@ cypress/screenshots # next src/.next/ src/.next +src/out dist/ diff --git a/package.json b/package.json index 6844e46..0e3f368 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/next.config.js b/src/next.config.js index 57cba2a..dd23c3e 100644 --- a/src/next.config.js +++ b/src/next.config.js @@ -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 diff --git a/yarn.lock b/yarn.lock index f41be0b..ee9eb4e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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/ast@1.8.5": version "1.8.5" @@ -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"