-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
[legacy-framework] Add support for blitz.config.ts
#2283
Conversation
Can this be disabled by default for non esbuild does not support features that need a type system, which are required for libraries like Typegoose. |
@andreasasprou so |
// blitz.config.js
/* eslint-disable @typescript-eslint/no-var-requires */
require('ts-node').register({ compilerOptions: { module: 'commonjs' } });
require('tsconfig-paths/register');
const { sessionMiddleware } = require('./session-middleware'); // TS file that creates a Typegoose model
const APP_BASE_PATH = process.env.APP_BASE_PATH || '/schedule';
const sentryConfig = require('./sentry.config');
module.exports = {
basePath: APP_BASE_PATH,
middleware: [...sessionMiddleware],
// ... etc |
@flybayer after upgrading to the new |
@sebastianhoitz hmm, that's not expected. Can you open an issue? |
blitz.config.ts
blitz.config.ts
Closes: blitz-js/legacy-framework#632
What are the changes and their implications?
Add support for
blitz.config.ts
. We useesbuild
to bundle your blitz config file and output it at.blitz/blitz.config.js
.Feature Checklist