Skip to content

Commit

Permalink
Setter strict:false for hono (skiller ikke lengre mellom med/uten tra…
Browse files Browse the repository at this point in the history
…iling slash)
  • Loading branch information
anders-nom committed Jul 2, 2024
1 parent 5ae04ed commit 4c42b83
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ import { MainMenu } from "./views/header/main-menu";
import { texts } from "./texts";
import { clientTextsKeys } from "decorator-shared/types";

const app = new Hono();
const app = new Hono({
strict: false,
});

if (env.NODE_ENV === "development" || env.IS_LOCAL_PROD) {
console.log("Setting up mocks");
Expand Down Expand Up @@ -164,11 +166,8 @@ app.get("/", async ({ req, html }) => {
});

app.route("/decorator-next", app);
app.route("/decorator-next/", app);
app.route("/dekoratoren", app);
app.route("/dekoratoren/", app);
app.route("/common-html/v4/navno", app);
app.route("/common-html/v4/navno/", app);

export default {
...app,
Expand Down

0 comments on commit 4c42b83

Please sign in to comment.