@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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. 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({ origin: 'http://localhost:3000', credentials: true });
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();`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newt-app/templates",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "private": false,
5
5
  "description": "Templates for newt-app",
6
6
  "type": "module",