mirror of
https://github.com/movie-web/simple-proxy.git
synced 2025-09-13 10:23:25 +00:00
Merge pull request #29 from movie-web/netlify
Netlify edge functions support
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,3 +5,4 @@ node_modules
|
||||
.output
|
||||
.env
|
||||
dist
|
||||
.netlify
|
||||
|
@@ -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
4
netlify.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[build]
|
||||
command = "pnpm build:netlify"
|
||||
publish = "."
|
||||
edge_functions = ".netlify"
|
@@ -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/",
|
||||
|
Reference in New Issue
Block a user