Skip to content

Instantly share code, notes, and snippets.

@LazyFatArrow LazyFatArrow/main.ts
Created Aug 19, 2019

Embed
What would you like to do?
// ...imports
import * as express from 'express';
import { join } from 'path';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
// serve static assets from the client/dist folder, change this to the correct path for your project
app.use(express.static(join(process.cwd(), '../client/dist/')));
//... you config
await app.listen(process.env.PORT);
}
bootstrap();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.