Skip to content

Commit

Permalink
chore(netlify.toml): install dev dependencies on netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Warnaar committed May 10, 2023
1 parent fa49730 commit 885cc57
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 1 addition & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[build]
command = "npm run build"
command = "NODE_ENV=production npm run build"

[build.environment]
NODE_ENV = "production"
NPM_CONFIG_AUDIT = "false"
NPM_CONFIG_FUND = "false"
NPM_FLAGS = "--ignore-scripts"
Expand Down
10 changes: 10 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ export default defineNuxtConfig({
'@/components/app-core/index.css',
],
nitro: {
esbuild: {
options: {
// allow graphql loader to use async/await in root
target: 'esnext',
}
},
prerender: {
crawlLinks: false
}
Expand Down Expand Up @@ -69,6 +75,10 @@ export default defineNuxtConfig({
.then(() => { }),
},
vite: {
build: {
// allow graphql loader to use async/await in root
target: 'esnext',
},
plugins: [
graphqlLoader()
]
Expand Down

0 comments on commit 885cc57

Please sign in to comment.