Skip to content

Force redirect to open-workflow-specification.org#268

Open
ricardozanini wants to merge 1 commit into
mainfrom
fix-redirect-force
Open

Force redirect to open-workflow-specification.org#268
ricardozanini wants to merge 1 commit into
mainfrom
fix-redirect-force

Conversation

@ricardozanini

Copy link
Copy Markdown
Member

Summary

The _redirects file catch-all from #267 doesn't work for known routes because the Astro SSR adapter handles them before Netlify processes _redirects.

This adds the redirect in netlify.toml with force = true, which takes precedence over SSR.

Test plan

  • After deploy, verify serverlessworkflow.io returns 301 to open-workflow-specification.org
  • Verify path preservation: serverlessworkflow.io/blog/fooopen-workflow-specification.org/blog/foo

@ricardozanini
ricardozanini requested a review from cdavernas as a code owner July 21, 2026 19:13
@ricardozanini
ricardozanini force-pushed the fix-redirect-force branch 2 times, most recently from 1824ab0 to 3a81ee8 Compare July 21, 2026 19:19
Keep schemas served locally for backward compatibility.
Everything else redirects to open-workflow-specification.org.

Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>

@cdavernas cdavernas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Cheers ❤️

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR changes the Netlify deployment to force a site-wide 301 redirect from serverlessworkflow.io to open-workflow-specification.org (while preserving legacy /schemas/* routes locally). It also restructures the repository to publish a static static/ directory instead of building the prior Astro site.

Changes:

  • Add forced catch-all redirect in netlify.toml, plus 200 rewrites to keep schema URLs working.
  • Publish a static site (static/) including a simple static/index.html “moved” landing page.
  • Add/restore legacy schema files under static/schemas/* and remove the Astro site source/build/tooling and associated content.

Reviewed changes

Copilot reviewed 94 out of 212 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tsconfig.json Removed TypeScript config (Astro app removal).
static/schemas/0.9/workflowextensions.json Added legacy 0.9 extensions schema.
static/schemas/0.9/timeouts.json Added legacy 0.9 timeouts schema.
static/schemas/0.9/secrets.json Added legacy 0.9 secrets schema.
static/schemas/0.9/retries.json Added legacy 0.9 retries schema.
static/schemas/0.9/odata.json Added legacy 0.9 OData schema.
static/schemas/0.9/functions.json Added legacy 0.9 functions schema.
static/schemas/0.9/extensions/ratelimiting.json Added legacy 0.9 rate-limiting extension schema.
static/schemas/0.9/events.json Added legacy 0.9 events schema.
static/schemas/0.9/errors.json Added legacy 0.9 errors schema.
static/schemas/0.9/common.json Added legacy 0.9 common definitions schema.
static/schemas/0.9/auth.json Added legacy 0.9 auth schema.
static/schemas/0.8/timeouts.json Added legacy 0.8 timeouts schema.
static/schemas/0.8/secrets.json Added legacy 0.8 secrets schema.
static/schemas/0.8/retries.json Added legacy 0.8 retries schema.
static/schemas/0.8/odata.json Added legacy 0.8 OData schema.
static/schemas/0.8/functions.json Added legacy 0.8 functions schema.
static/schemas/0.8/extensions/ratelimiting.json Added legacy 0.8 rate-limiting extension schema.
static/schemas/0.8/events.json Added legacy 0.8 events schema.
static/schemas/0.8/errors.json Added legacy 0.8 errors schema.
static/schemas/0.8/common.json Added legacy 0.8 common definitions schema.
static/schemas/0.8/auth.json Added legacy 0.8 auth schema.
static/schemas/0.7/timeouts.json Added legacy 0.7 timeouts schema.
static/schemas/0.7/secrets.json Added legacy 0.7 secrets schema.
static/schemas/0.7/retries.json Added legacy 0.7 retries schema.
static/schemas/0.7/odata.json Added legacy 0.7 OData schema.
static/schemas/0.7/functions.json Added legacy 0.7 functions schema.
static/schemas/0.7/extensions/ratelimiting.json Added legacy 0.7 rate-limiting extension schema.
static/schemas/0.7/extensions/kpi.json Added legacy 0.7 KPI extension schema.
static/schemas/0.7/events.json Added legacy 0.7 events schema.
static/schemas/0.7/errors.json Added legacy 0.7 errors schema.
static/schemas/0.7/common.json Added legacy 0.7 common definitions schema.
static/schemas/0.7/auth.json Added legacy 0.7 auth schema.
static/schemas/0.6/retries.json Added legacy 0.6 retries schema.
static/schemas/0.6/functions.json Added legacy 0.6 functions schema.
static/schemas/0.6/extensions/kpi.json Added legacy 0.6 KPI extension schema.
static/schemas/0.6/events.json Added legacy 0.6 events schema.
static/schemas/0.6/common.json Added legacy 0.6 common definitions schema.
static/schemas/0.5/retries.json Added legacy 0.5 retries schema.
static/schemas/0.5/functions.json Added legacy 0.5 functions schema.
static/schemas/0.5/extensions/kpi.json Added legacy 0.5 KPI extension schema.
static/schemas/0.5/events.json Added legacy 0.5 events schema.
static/schemas/0.5/common.json Added legacy 0.5 common definitions schema.
static/index.html Added static “moved” page.
src/utils/formatter.ts Removed (Astro app removal).
src/utils/collections.ts Removed (Astro app removal).
src/styles/site.css Removed (Astro app removal).
src/pages/spec/1.0.0/errors/[...id].astro Removed SSR endpoint/page.
src/pages/rss.xml.js Removed RSS endpoint.
src/pages/robots.txt.ts Removed robots.txt endpoint.
src/pages/community.astro Removed community page.
src/pages/blog/index.astro Removed blog index page.
src/pages/blog/[group].astro Removed blog grouping page.
src/pages/blog/[...slug].astro Removed blog post page.
src/layouts/SidebarLayout.astro Removed layout component.
src/layouts/Layout.astro Removed base layout component.
src/content/spec/1.0.0/errors/validation.json Removed spec error content.
src/content/spec/1.0.0/errors/timeout.json Removed spec error content.
src/content/spec/1.0.0/errors/runtime.json Removed spec error content.
src/content/spec/1.0.0/errors/expression.json Removed spec error content.
src/content/spec/1.0.0/errors/configuration.json Removed spec error content.
src/content/spec/1.0.0/errors/communication.json Removed spec error content.
src/content/spec/1.0.0/errors/authorization.json Removed spec error content.
src/content/spec/1.0.0/errors/authentication.json Removed spec error content.
src/content/examples/wait.md Removed examples content.
src/content/examples/try.md Removed examples content.
src/content/examples/switch.md Removed examples content.
src/content/examples/subflow.md Removed examples content.
src/content/examples/script.md Removed examples content.
src/content/examples/raise.md Removed examples content.
src/content/examples/open-api.md Removed examples content.
src/content/examples/listen.md Removed examples content.
src/content/examples/http.md Removed examples content.
src/content/examples/grpc.md Removed examples content.
src/content/examples/fork.md Removed examples content.
src/content/examples/for.md Removed examples content.
src/content/examples/emit.md Removed examples content.
src/content/examples/container.md Removed examples content.
src/content/examples/async-api.md Removed examples content.
src/content/blog/releases/release-synapse-1.0.0-alpha5.2.md Removed blog content.
src/content/blog/releases/release-sdk-typescript-legacy.md Removed blog content.
src/content/blog/releases/release-sdk-typescript-1.0.1.md Removed blog content.
src/content/blog/releases/release-sdk-typescript-1.0.0-alpha5.md Removed blog content.
src/content/blog/releases/release-sdk-rust.md Removed blog content.
src/content/blog/releases/release-sdk-java-7.2.0.md Removed blog content.
src/content/blog/releases/release-sdk-java-7.1.0.md Removed blog content.
src/content/blog/releases/release-sdk-java-7.0.0.md Removed blog content.
src/content/blog/releases/release-sdk-java-7.0.0-alpha5.md Removed blog content.
src/content/blog/releases/release-sdk-java-7.0.0-alpha5.1.md Removed blog content.
src/content/blog/releases/release-sdk-java-7.0.0-alpha1.md Removed blog content.
src/content/blog/releases/release-sdk-go-4.0.0.md Removed blog content.
src/content/blog/releases/release-sdk-go-3.0.0.md Removed blog content.
src/content/blog/releases/release-1.0.0.md Removed blog content.
src/content/blog/releases/release-1.0.0-alpha5.md Removed blog content.
src/content/blog/releases/release-1.0.0-alpha4.md Removed blog content.
src/content/blog/releases/release-1.0.0-alpha3.md Removed blog content.
src/content/blog/releases/release-1.0.0-alpha1.md Removed blog content.
src/content/blog/general/visit-to-huawei.md Removed blog content.
src/content/blog/general/announcing-rename-to-open-workflow-specification.md Removed blog content.
src/content/blog/events/serverless-workflow-at-fosdem-2025.md Removed blog content.
src/content/blog/events/serverless-workflow-at-fosdem-2025-recording.md Removed blog content.
src/content.config.ts Removed content collections config.
src/consts.ts Removed constants for site content.
src/components/ThemeIcon.astro Removed component.
src/components/Sidebar.astro Removed component.
src/components/Section.astro Removed component.
src/components/HtmlHead.astro Removed component.
src/components/Header.astro Removed component.
src/components/FormattedDate.astro Removed component.
src/components/Footer.astro Removed component.
src/components/Card.astro Removed component.
src/components/BlogPostsList.astro Removed component.
README.md Removed repository README.
public/img/logos/redhat.svg Removed static asset.
public/img/logos/lf-stacked-white.svg Removed static asset.
public/img/logos/lf-stacked-color.svg Removed static asset.
public/img/logos/foxflow.svg Removed static asset.
public/icons/manifest.json Removed web manifest.
public/icons/browserconfig.xml Removed browser config.
public/_redirects Removed redirects file (replaced by netlify.toml).
public/_headers Removed Netlify headers file.
package.json Removed Node/Astro project manifest.
netlify.toml Updated to publish static/, add schema rewrites, and force redirect.
Dockerfile Removed dev container build.
docker-compose.yaml Removed local dev compose setup.
CONTRIBUTING.md Removed contribution guide.
astro.config.mjs Removed Astro configuration.
.vscode/launch.json Removed editor config.
.vscode/extensions.json Removed editor config.
.nvmrc Removed Node version pin.
.netlify/v1/config.json Removed Netlify local config.
.gitpod.yml Removed Gitpod config.
.gitignore Removed ignore rules.
.github/PULL_REQUEST_TEMPLATE.md Removed PR template.
.github/OWNERS Removed OWNERS config.
.github/ISSUE_TEMPLATE/website.md Removed issue template.
.github/ISSUE_TEMPLATE/feature.yml Removed issue template.
.github/ISSUE_TEMPLATE/config.yml Removed issue template config.
.github/ISSUE_TEMPLATE/bug.yml Removed issue template.
.github/CODEOWNERS Removed CODEOWNERS file.
.dockerignore Removed docker ignore rules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread netlify.toml
Comment on lines +22 to +26
[[redirects]]
from = "/*"
to = "https://open-workflow-specification.org/:splat"
status = 301
force = true
Comment thread netlify.toml
Comment on lines 1 to +3
[build]
command = "npm run build"
publish = "dist" No newline at end of file
command = "echo 'Static site, no build needed'"
publish = "static"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants