Add cluster start scripts and remove unused Config import in Footer
This commit is contained in:
parent
42238db254
commit
37f35c3a13
@ -1,6 +1,5 @@
|
||||
'use client'
|
||||
import LocaleSwitch from '@/components/LocaleSwitch'
|
||||
import Config from '@/config/config.export'
|
||||
import { usePathname } from 'next/navigation'
|
||||
|
||||
export default function Footer() {
|
||||
@ -11,7 +10,6 @@ export default function Footer() {
|
||||
<div className="footer-inner flex justify-center">
|
||||
<span>COPYRIGHT©2024 Hanwha Japan All Rights Reserved.</span>
|
||||
<LocaleSwitch />
|
||||
{Config().mode}
|
||||
</div>
|
||||
</footer>
|
||||
)}
|
||||
|
||||
@ -5,6 +5,7 @@ import configProduction from './config.production'
|
||||
|
||||
// 클라이언트에서는 이 함수를 사용하여 config 값을 참조합니다.
|
||||
const Config = () => {
|
||||
console.log('🚀 ~ Config ~ process.env.NEXT_PUBLIC_RUN_MODE:', process.env.NEXT_PUBLIC_RUN_MODE)
|
||||
switch (process.env.NEXT_PUBLIC_RUN_MODE) {
|
||||
case 'local':
|
||||
return configLocal
|
||||
|
||||
2
startscriopt-cluster1.js
Normal file
2
startscriopt-cluster1.js
Normal file
@ -0,0 +1,2 @@
|
||||
var exec = require('child_process').exec
|
||||
exec('yarn start:cluster1', { windowsHide: true })
|
||||
2
startscript-cluster2.js
Normal file
2
startscript-cluster2.js
Normal file
@ -0,0 +1,2 @@
|
||||
var exec = require('child_process').exec
|
||||
exec('yarn start:cluster2', { windowsHide: true })
|
||||
Loading…
x
Reference in New Issue
Block a user