mirror of
https://github.com/langgenius/webapp-text-generator.git
synced 2026-07-01 20:05:07 -04:00
feat(config): Add app base URL path and API prefix configuration
This commit is contained in:
@@ -7,3 +7,7 @@ NEXT_PUBLIC_API_URL=
|
||||
# APP type
|
||||
# true for workflow apps
|
||||
NEXT_PUBLIC_APP_TYPE_WORKFLOW=
|
||||
# Base URL path for the application
|
||||
NEXT_PUBLIC_APP_BASE_URL_PATH=
|
||||
# API prefix path for the application
|
||||
NEXT_PUBLIC_API_PREFIX=
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ export const APP_INFO: AppInfo = {
|
||||
default_language: 'en-US',
|
||||
}
|
||||
|
||||
export const API_PREFIX = '/api'
|
||||
export const API_PREFIX = `${process.env.NEXT_PUBLIC_API_PREFIX || '/api'}`
|
||||
|
||||
export const LOCALE_COOKIE_NAME = 'locale'
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
basePath: process.env.NEXT_PUBLIC_APP_BASE_URL_PATH,
|
||||
productionBrowserSourceMaps: false, // enable browser source map generation during the production build
|
||||
// Configure pageExtensions to include md and mdx
|
||||
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
|
||||
|
||||
Reference in New Issue
Block a user