diff --git a/build.ps1 b/build.ps1 index ae950bc..c24a9b3 100644 --- a/build.ps1 +++ b/build.ps1 @@ -16,7 +16,7 @@ try { $outFolder = New-Item -ItemType Directory -Path $outFolder Write-Host "Copy react site to build/new-app folder" - Copy-Item -Path "./new-app/out" -Destination "$outFolder" -Recurse -Force | Out-Null + Copy-Item -Path "./new-app/out/*" -Destination "$outFolder" -Recurse -Force | Out-Null } finally { Pop-Location diff --git a/new-app/next.config.mjs b/new-app/next.config.mjs index cca326f..de31f1e 100644 --- a/new-app/next.config.mjs +++ b/new-app/next.config.mjs @@ -1,9 +1,9 @@ /** @type {import('next').NextConfig} */ const nextConfig = { output: 'export', - basePath: process.env.basePath, + basePath: process.env.basePath ?? "", env: { - basePath: process.env.basePath, + basePath: process.env.basePath ?? "", }, };