16 lines
305 B
TypeScript
16 lines
305 B
TypeScript
import type { NextConfig } from "next";
|
|
import dotenv from 'dotenv';
|
|
dotenv.config();
|
|
if (!process.env.API_URL){
|
|
console.error("no api url provided");
|
|
process.exit(1);
|
|
}
|
|
|
|
|
|
const nextConfig: NextConfig = {
|
|
env: {
|
|
NEXT_PUBLIC_API_URL: process.env.API_URL,
|
|
}
|
|
};
|
|
|
|
export default nextConfig;
|