Merge remote-tracking branch 'origin' into iipbs/sn/dev

This commit is contained in:
2025-12-30 09:45:32 +09:00
3 changed files with 29 additions and 7 deletions
+14 -6
View File
@@ -3,10 +3,22 @@ import type { NextConfig } from "next";
const subDomain = const subDomain =
process.env.NEXT_PUBLIC_SUB_DOMAIN || "http://localhost:13000"; process.env.NEXT_PUBLIC_SUB_DOMAIN || "http://localhost:13000";
const backendUrl = process.env.NEXT_PUBLIC_SERVER_API_URL || "http://192.168.0.102:8000";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
output: "standalone", output: "standalone",
experimental: {
proxyTimeout: 600000,
},
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
logging: {
fetches: {
fullUrl: true,
},
},
async rewrites() { async rewrites() {
return { return {
beforeFiles: [ beforeFiles: [
@@ -27,10 +39,6 @@ const nextConfig: NextConfig = {
source: "/cms/:path*", source: "/cms/:path*",
destination: `${subDomain}/cms/:path*`, destination: `${subDomain}/cms/:path*`,
}, },
{
source: "/user-service/:path*",
destination: `${backendUrl}/user-service/:path*`,
},
], ],
fallback: [], fallback: [],
}; };
+14
View File
@@ -5,6 +5,20 @@ const subDomain =
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
output: "standalone", output: "standalone",
experimental: {
proxyTimeout: 600000,
},
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
logging: {
fetches: {
fullUrl: true,
},
},
async headers() { async headers() {
return [ return [
{ {
+1 -1
View File
@@ -49,7 +49,7 @@ export const getAnonymouseMenuList = async (
siteId: string, siteId: string,
): Promise<MenuItem[]> => { ): Promise<MenuItem[]> => {
const response = await fetch( const response = await fetch(
`${BASE_URL}/${ENDPOINT.CMS_SERVICE.MENU_ANONYMOUS}/user/${siteId}`, `${BASE_URL}${ENDPOINT.CMS_SERVICE.MENU_ANONYMOUS}/user/${siteId}`,
{ {
method: "GET", method: "GET",
headers: { headers: {