-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for blitz.config.ts
#632
Comments
Could I work on this? 🥺 |
If only things were that simple 😢 Looks to me as though the So my current plan of action is to add a transpilation step using either Typescript or Babel into the config stage. Their main reason for not supporting |
@jamiedavenport the perf argument is pretty lame since it's one single file compared to the actual app build that's many files. Yeah, adding this to the server config stage sounds perfect. |
What do you want and why?
I want to transpile our config file so that we can use Typescript with
blitz.config.ts
. One big reason for this is currently our built in session management is configured in this file. And for people not using prisma, they need to define their database access hooks to get/set thesession
in their DB. The straightforward way to do this would be importdb
from./db/index.ts
. But currently that doesn't work sinceblitz.config.js
isn't transpiled.Possible implementation(s)
I think this might be as simple as adding config to with-blitz.ts. Something like this:
And then change our
getConfig
function to use_blitz.config.js
.And also change this line to use
_blitz.config.js
The text was updated successfully, but these errors were encountered: