We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7494549 commit 5978933Copy full SHA for 5978933
11/firststeps.md
@@ -150,7 +150,7 @@ import { AppModule } from './app.module';
150
151
async function bootstrap() {
152
const app = await NestFactory.create(AppModule);
153
- await app.listen(3000);
+ await app.listen(process.env.PORT ?? 3000);
154
}
155
bootstrap();
156
```
@@ -208,7 +208,15 @@ $ npm run start:dev
208
209
对于不需要IDE的无头环境(如持续集成、Git钩子等),Nest项目自带了开箱即用的 `npm` 脚本。
210
211
-**[学习资料](https://docs.nestjs.cn/10/awesome?id=%e7%9b%b8%e5%85%b3%e8%b5%84%e6%ba%90)**
+```
212
+
213
+$ npm run lint
214
215
+# 或者你使用了 prettier
216
+$ npm run format
217
218
219
+**[学习资料](https://docs.nestjs.cn/11/awesome?id=%e7%9b%b8%e5%85%b3%e8%b5%84%e6%ba%90)**
220
221
### 支持我们
222
0 commit comments