Skip to content

Commit

Permalink
Merge pull request #388 from AmazeeLabs/fix-netlify-dev
Browse files Browse the repository at this point in the history
node_modules is messed up by "netlify dev"
  • Loading branch information
Leksat authored Dec 12, 2024
2 parents 4cc812c + 69ceea8 commit 318c5b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/website/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
public
styles.css
persisted-store

# Deno comes with "netlify dev". We don't need its lock file.
/deno.lock
10 changes: 10 additions & 0 deletions apps/website/deno.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// This isn't a Deno project, yet Deno is added by netlify-cli when
// "netlify dev" is used.
// This file is picked up by Deno automatically, so we can use it to adjust Deno
// behavior.
{
// By default, Deno will use node_modules/.deno dir for storing dependencies.
// Somehow it messes up node_modules resolution leading to Gatsby build
// errors. So we prevent Deno from using node_modules dir.
"nodeModulesDir": false,
}

0 comments on commit 318c5b7

Please sign in to comment.