0.4.6 • Published 4 years ago

@otogira/now-denolis v0.4.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

now-denolis

Please do not use this library on production level. You have been warned.

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

Credits