Merge pull request #29 from movie-web/netlify

Netlify edge functions support
This commit is contained in:
William Oldham
2024-01-08 20:49:46 +00:00
committed by GitHub
4 changed files with 8 additions and 1 deletions

3
.gitignore vendored
View File

@@ -4,4 +4,5 @@ node_modules
.cache
.output
.env
dist
dist
.netlify

View File

@@ -18,3 +18,4 @@ Read the docs at https://docs.movie-web.app/proxy/introduction
- cloudflare workers
- AWS lambda
- nodejs
- netlify edge functions

4
netlify.toml Normal file
View File

@@ -0,0 +1,4 @@
[build]
command = "pnpm build:netlify"
publish = "."
edge_functions = ".netlify"

View File

@@ -9,6 +9,7 @@
"build:cloudflare": "NITRO_PRESET=cloudflare npm run build",
"build:aws": "NITRO_PRESET=aws_lambda npm run build",
"build:node": "NITRO_PRESET=node-server npm run build",
"build:netlify": "NITRO_PRESET=netlify_edge npm run build",
"start": "node .output/server/index.mjs",
"lint": "eslint --ext .ts src/",
"lint:fix": "eslint --fix --ext .ts src/",