diff --git a/netlify.ssr.toml b/netlify.ssr.toml new file mode 100644 index 000000000000..8621f3b1c110 --- /dev/null +++ b/netlify.ssr.toml @@ -0,0 +1,22 @@ +[build] + command="npm run build" + publish="packages/website/.next" + +[build.processing] + skip_processing = true + +[build.environment] + NEXT_PUBLIC_DATA_FETCHING="ssr" + +[template.environment] + SITE_URL="Base url of your website." + NEXT_PUBLIC_CL_CLIENT_ID="Commerce Layer Sales Channel Client ID." + NEXT_PUBLIC_CL_ENDPOINT="Commerce Layer Sales Channel Endpoint." + +# https://github.com/netlify/next-runtime/issues/2329#issuecomment-1907388023 +[functions] + included_files = [ + "node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/router-context*", + "node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/amp-context*", + "node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/head-manager-context*", + ] diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 000000000000..6f473208574e --- /dev/null +++ b/netlify.toml @@ -0,0 +1,14 @@ +[build] + command="npm run build" + publish="packages/website/out" + +[build.processing] + skip_processing = true + +[build.environment] + NEXT_PUBLIC_DATA_FETCHING="ssg" + +[template.environment] + SITE_URL="Base url of your website." + NEXT_PUBLIC_CL_CLIENT_ID="Commerce Layer Sales Channel Client ID." + NEXT_PUBLIC_CL_ENDPOINT="Commerce Layer Sales Channel Endpoint."