pm2 file and redirect fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-03-19 03:11:52 +03:00
parent e733ca9cc3
commit 12a482324c
4 changed files with 41 additions and 8 deletions

7
app/ecosystem.config.js Normal file
View File

@@ -0,0 +1,7 @@
module.exports = {
apps: [{
name: 'warframe-center-app',
script: 'npm run start',
watch: false
}]
}

View File

@@ -1,16 +1,30 @@
const withPlugins = require('next-compose-plugins')
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
redirects: [
reactStrictMode: true
// webpack: (config, { webpack }) => {
// return config
// },
}
const redirects = {
async redirects () {
return [
{
source: '/',
destination: '/home',
permanent: true
}
]
// webpack: (config, { webpack }) => {
// return config
// },
}
}
module.exports = withPlugins(
[
[redirects]
],
nextConfig
)
module.exports = nextConfig

11
app/package-lock.json generated
View File

@@ -11,6 +11,7 @@
"@mui/material": "^5.5.0",
"@mui/x-data-grid": "^5.6.1",
"next": "latest",
"next-compose-plugins": "^2.2.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-moment": "^1.1.1",
@@ -3485,6 +3486,11 @@
}
}
},
"node_modules/next-compose-plugins": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/next-compose-plugins/-/next-compose-plugins-2.2.1.tgz",
"integrity": "sha512-OjJ+fV15FXO2uQXQagLD4C0abYErBjyjE0I0FHpOEIB8upw0hg1ldFP6cqHTJBH1cZqy96OeR3u1dJ+Ez2D4Bg=="
},
"node_modules/node-abi": {
"version": "3.8.0",
"resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.8.0.tgz",
@@ -6986,6 +6992,11 @@
"use-subscription": "1.5.1"
}
},
"next-compose-plugins": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/next-compose-plugins/-/next-compose-plugins-2.2.1.tgz",
"integrity": "sha512-OjJ+fV15FXO2uQXQagLD4C0abYErBjyjE0I0FHpOEIB8upw0hg1ldFP6cqHTJBH1cZqy96OeR3u1dJ+Ez2D4Bg=="
},
"node-abi": {
"version": "3.8.0",
"resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.8.0.tgz",

View File

@@ -12,6 +12,7 @@
"@mui/material": "^5.5.0",
"@mui/x-data-grid": "^5.6.1",
"next": "latest",
"next-compose-plugins": "^2.2.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-moment": "^1.1.1",