Skip to content

Commit

Permalink
feat: Add netlify config
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Mar 15, 2021
1 parent bf9b254 commit 93f869a
Show file tree
Hide file tree
Showing 5 changed files with 49,356 additions and 11,288 deletions.
10 changes: 10 additions & 0 deletions template/web/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[build]
command = "npm run build"
publish = "out"

[[plugins]]
package = "@netlify/plugin-nextjs"

[context.production.environment]
NEXT_SERVERLESS = "true"
NODE_ENV = "production"
4 changes: 4 additions & 0 deletions template/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ const STUDIO_REWRITE = {
}

module.exports = {
target: 'serverless',
env: {
JSCOV: 0,
},
rewrites: () => [STUDIO_REWRITE],
}
Loading

0 comments on commit 93f869a

Please sign in to comment.