mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
/!\ Use a dedicated config file for development
It means you have to replace NODE_ENV=test to NODE_ENV=dev if you use it npm run dev:* commands are already updated
This commit is contained in:
parent
630d0a1bf5
commit
9452d4fd33
26 changed files with 207 additions and 106 deletions
|
@ -5,7 +5,7 @@ import { optionalAuthenticate } from '@server/middlewares/auth'
|
|||
import { getCompleteLocale, is18nLocale } from '../../shared/core-utils/i18n'
|
||||
import { HttpStatusCode } from '../../shared/models/http/http-error-codes'
|
||||
import { PluginType } from '../../shared/models/plugins/plugin.type'
|
||||
import { isTestInstance } from '../helpers/core-utils'
|
||||
import { isProdInstance } from '../helpers/core-utils'
|
||||
import { PLUGIN_GLOBAL_CSS_PATH } from '../initializers/constants'
|
||||
import { PluginManager, RegisteredPlugin } from '../lib/plugins/plugin-manager'
|
||||
import { getExternalAuthValidator, getPluginValidator, pluginStaticDirectoryValidator } from '../middlewares/validators/plugins'
|
||||
|
@ -13,7 +13,7 @@ import { serveThemeCSSValidator } from '../middlewares/validators/themes'
|
|||
|
||||
const sendFileOptions = {
|
||||
maxAge: '30 days',
|
||||
immutable: !isTestInstance()
|
||||
immutable: isProdInstance()
|
||||
}
|
||||
|
||||
const pluginsRouter = express.Router()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue