Skip to content

Commit

Permalink
Add improt assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwjohnston committed Nov 19, 2023
1 parent cbd1079 commit 7490068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/$.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { LoaderArgs } from "@remix-run/node"
export const loader = async (loaderInput: LoaderArgs) => {

const pathname = loaderInput.params["*"];
const result = await import(`../app/json/${pathname}.json`);
const result = await import(`../app/json/${pathname}.json`, {assert: {type: "json"}});


return result;
Expand Down

0 comments on commit 7490068

Please sign in to comment.