mirror of
https://github.com/p-stream/simple-proxy.git
synced 2026-01-11 20:10:35 +00:00
Merge pull request #29 from movie-web/netlify
Netlify edge functions support
This commit is contained in:
commit
3769b37e8a
4 changed files with 8 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -4,4 +4,5 @@ node_modules
|
|||
.cache
|
||||
.output
|
||||
.env
|
||||
dist
|
||||
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/",
|
||||
|
|
|
|||
Loading…
Reference in a new issue