pm2 file and redirect fix
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
7
app/ecosystem.config.js
Normal file
7
app/ecosystem.config.js
Normal file
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
apps: [{
|
||||
name: 'warframe-center-app',
|
||||
script: 'npm run start',
|
||||
watch: false
|
||||
}]
|
||||
}
|
||||
@@ -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
11
app/package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user