Skip to content

Commit

Permalink
chore: add netlify toml to solve netlify deploy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Mar 4, 2024
1 parent d889c1e commit c01b995
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
22 changes: 22 additions & 0 deletions netlify.ssr.toml
Original file line number Diff line number Diff line change
@@ -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*",
]
14 changes: 14 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -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."

0 comments on commit c01b995

Please sign in to comment.