Skip to content

Commit

Permalink
Merge pull request #1 from choi-moeta/test-netlify
Browse files Browse the repository at this point in the history
Setup netlify deply
  • Loading branch information
moetazaneta committed Oct 29, 2021
2 parents ab8a866 + 19b3f3c commit 4a6039d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
[build.environment]
NPM_FLAGS = "--prefix=/dev/null"
NODE_VERSION = "14"
NODE_VERSION = "16"
NPM_FLAGS = "--version" # prevent Netlify npm install

[build]
publish = "dist"
command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build"
command = "npx pnpm i --store=node_modules/.pnpm-store && npm run build"

[[redirects]]
from = "/*"
to = "/index.html"
status = 200

[[headers]]
for = "/manifest.webmanifest"
[headers.values]
Content-Type = "application/manifest+json"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"build": "vite build",
"serve": "vite preview"
},
"dependencies": {
Expand Down

0 comments on commit 4a6039d

Please sign in to comment.