chore: env 기준 추가

This commit is contained in:
yoosangwook 2024-08-02 11:34:22 +09:00
parent e51f0b1dcb
commit 69e1077c2c
4 changed files with 18 additions and 16 deletions

1
.env.development Normal file
View File

@ -0,0 +1 @@
NEXT_PUBLIC_TEST="테스트변수입니다. development"

1
.env.production Normal file
View File

@ -0,0 +1 @@
NEXT_PUBLIC_TEST="테스트변수입니다. production"

View File

@ -1,15 +1,15 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
reactStrictMode: true,
webpack: (config) => {
config.externals.push({
"utf-8-validate": "commonjs utf-8-validate",
bufferutil: "commonjs bufferutil",
canvas: "commonjs canvas",
});
'utf-8-validate': 'commonjs utf-8-validate',
bufferutil: 'commonjs bufferutil',
canvas: 'commonjs canvas',
})
// config.infrastructureLogging = { debug: /PackFileCache/ };
return config;
return config
},
};
}
export default nextConfig;
export default nextConfig

View File

@ -1,16 +1,12 @@
'use client'
import { Table, TableBody, TableCell, TableColumn, TableHeader, TableRow } from '@nextui-org/react'
import Hero from '@/components/Hero'
import {
Table,
TableBody,
TableCell,
TableColumn,
TableHeader,
TableRow,
} from '@nextui-org/react'
import QSelect from '@/components/ui/QSelect'
import styles from './changelog.module.css'
export default function changelogPage() {
const testVar = process.env.NEXT_PUBLIC_TEST
return (
<>
<Hero title="Change log" />
@ -35,6 +31,10 @@ export default function changelogPage() {
</TableBody>
</Table>
</div>
<div className="px-2 py-4">
<QSelect />
</div>
<div className="w-full bg-orange-300 py-4">{testVar}</div>
</>
)
}