Skip to content

Commit

Permalink
feat(app): remove serve static module
Browse files Browse the repository at this point in the history
  • Loading branch information
pviara committed Mar 25, 2024
1 parent c2965c9 commit b0defde
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:
git reset --hard origin/main
yarn install
yarn build
pm2 delete w3-bestiary
pm2 start dist/src/main.js --name w3-bestiary
pm2 delete w3-bestiary-api
pm2 start dist/src/main.js --name w3-bestiary-api
32 changes: 0 additions & 32 deletions .github/workflows/cd_preview.yml

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "w3-bestiary-back",
"version": "2.1.0",
"version": "2.2.0",
"description": "",
"author": "",
"private": true,
Expand Down Expand Up @@ -30,7 +30,6 @@
"@nestjs/core": "^10.0.5",
"@nestjs/cqrs": "^10.0.1",
"@nestjs/platform-express": "^10.0.5",
"@nestjs/serve-static": "^4.0.0",
"@nestjs/swagger": "^7.1.1",
"axios": "^1.4.0",
"class-transformer": "^0.5.1",
Expand Down
5 changes: 0 additions & 5 deletions src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { CategoryModule } from './category/category.module';
import { ConfigurationModule } from './infrastructure/configuration/configuration.module';
import { ItemModule } from './item/item.module';
import { join } from 'path';
import { Module } from '@nestjs/common';
import { MonsterModule } from './monster/monster.module';
import { RouterModule } from '@nestjs/core';
import { ServeStaticModule } from '@nestjs/serve-static';
import { VersionModule } from './version/version.module';

@Module({
Expand Down Expand Up @@ -33,9 +31,6 @@ import { VersionModule } from './version/version.module';
],
},
]),
ServeStaticModule.forRoot({
rootPath: join(__dirname, '../..', 'public'),
}),
VersionModule,
],
controllers: [],
Expand Down
12 changes: 0 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1007,13 +1007,6 @@
jsonc-parser "3.2.0"
pluralize "8.0.0"

"@nestjs/serve-static@^4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@nestjs/serve-static/-/serve-static-4.0.0.tgz#3baeea982f66d64718a59f3d8f67281b74d4dbdd"
integrity sha512-8cTrNV2ngdHIjiLNsXePnw0+KY1ThrZGz/WeyAG5gIvmZNDbnZBOrPoYlKL+MOzlXlQStxR5jKLYmn+nJeoncQ==
dependencies:
path-to-regexp "0.2.5"

"@nestjs/swagger@^7.1.1":
version "7.1.1"
resolved "https://registry.yarnpkg.com/@nestjs/swagger/-/swagger-7.1.1.tgz#67285035a58a32059f219532b449addf81f8e513"
Expand Down Expand Up @@ -4456,11 +4449,6 @@ path-to-regexp@0.1.7:
resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz"
integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=

path-to-regexp@0.2.5:
version "0.2.5"
resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.2.5.tgz#0b426991e387fc4c675de23557f358715eb66fb0"
integrity sha512-l6qtdDPIkmAmzEO6egquYDfqQGPMRNGjYtrU13HAXb3YSRrt7HSb1sJY0pKp6o2bAa86tSB6iwaW2JbthPKr7Q==

path-to-regexp@3.2.0:
version "3.2.0"
resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-3.2.0.tgz"
Expand Down

0 comments on commit b0defde

Please sign in to comment.