[V5] server.ts file changes #1868
-
Hi! The changes are the same in the Old version: import 'reflect-metadata'
import sourceMapSupport from 'source-map-support'
import { Ignitor } from '@adonisjs/core/build/src/Ignitor'
sourceMapSupport.install({ handleUncaughtExceptions: false })
new Ignitor(__dirname)
.httpServer()
.start()
.catch(console.error) New version: import 'reflect-metadata'
import { Ignitor } from '@adonisjs/core/build/standalone'
new Ignitor(__dirname).httpServer().start() |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think |
Beta Was this translation helpful? Give feedback.
I think
source-map-support
should still be installed so that the error stack trace in production build can point to the source files. I will fix the generator code for the new release. In other words, the old file is correct