Skip to content

Commit

Permalink
Change dev twelf-wasm redirect strategy (#31)
Browse files Browse the repository at this point in the history
Hopefully the new strategy is one that works
  • Loading branch information
robsimmons authored Apr 1, 2024
1 parent fb99af3 commit b2f3852
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 37 deletions.
11 changes: 5 additions & 6 deletions wiki/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import starlightLinksValidator from "starlight-links-validator";
// https://astro.build/config
export default defineConfig({
site: "https://twelf.org",
redirects:
import.meta.env.MODE === "development"
? {
"/twelf-wasm/": "/twelf-wasm/index.html",
}
: {},
redirects: import.meta.env.DEV
? {
"/twelf-wasm/": "https://jcreedcmu.github.io/twelf-wasm/",
}
: {},
trailingSlash: "always",
integrations: [
starlight({
Expand Down
31 changes: 0 additions & 31 deletions wiki/src/pages/twelf-wasm/[...path].ts

This file was deleted.

0 comments on commit b2f3852

Please sign in to comment.