0.1.0-f10e43c9c96e26df54b8a1d1dbdab69b8bba0af6 • Published 4 years ago
@otogira/now-denolis-dev v0.1.0-f10e43c9c96e26df54b8a1d1dbdab69b8bba0af6
now-denolis
Please do not use it outisde of experimental level.
Run Deno with custom config on vercel
. 🦕🔧 + λ = ❤️
Basically now-deno with an option to use your own tsconfig.json
Usage
// now.json
{
"functions": {
"api/**/*.{ts,tsx}": {
"runtime": "@otogira/now-denolis@0.4.5"
}
},
"build":{ #required
"env":{
"DENO_VERSION":"1.0.0 OR latest",
"DENO_TSCONFIG":"./tsconfig.json" #add_this_line
}
}
}
Note: You need vercel
v17.x or above to use the above configuration.
Use case
- Custom React SSR that require adding
jsx:react
variable in the config - Overriding defafult config from deno
- Migrating from other framework that heavily use custom config