@newt-app/templates 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1081,7 +1081,10 @@ import { AppModule } from './app.module';
|
|
|
1081
1081
|
async function bootstrap() {
|
|
1082
1082
|
const app = await NestFactory.create(AppModule, { bodyParser: false });
|
|
1083
1083
|
app.setGlobalPrefix('api');
|
|
1084
|
-
app.enableCors({
|
|
1084
|
+
app.enableCors({
|
|
1085
|
+
origin: process.env.CORS_ORIGIN ?? 'http://localhost:3000',
|
|
1086
|
+
credentials: true,
|
|
1087
|
+
});
|
|
1085
1088
|
await app.listen(process.env.PORT ?? 3001);
|
|
1086
1089
|
}
|
|
1087
1090
|
void bootstrap();`
|