mirror of
https://github.com/movie-web/simple-proxy.git
synced 2025-09-13 08:03:27 +00:00
Merge pull request #29 from movie-web/netlify
Netlify edge functions support
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -4,4 +4,5 @@ node_modules
|
|||||||
.cache
|
.cache
|
||||||
.output
|
.output
|
||||||
.env
|
.env
|
||||||
dist
|
dist
|
||||||
|
.netlify
|
||||||
|
@@ -18,3 +18,4 @@ Read the docs at https://docs.movie-web.app/proxy/introduction
|
|||||||
- cloudflare workers
|
- cloudflare workers
|
||||||
- AWS lambda
|
- AWS lambda
|
||||||
- nodejs
|
- 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:cloudflare": "NITRO_PRESET=cloudflare npm run build",
|
||||||
"build:aws": "NITRO_PRESET=aws_lambda npm run build",
|
"build:aws": "NITRO_PRESET=aws_lambda npm run build",
|
||||||
"build:node": "NITRO_PRESET=node-server 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",
|
"start": "node .output/server/index.mjs",
|
||||||
"lint": "eslint --ext .ts src/",
|
"lint": "eslint --ext .ts src/",
|
||||||
"lint:fix": "eslint --fix --ext .ts src/",
|
"lint:fix": "eslint --fix --ext .ts src/",
|
||||||
|
Reference in New Issue
Block a user