Skip to content

Commit

Permalink
Fixed Build script
Browse files Browse the repository at this point in the history
  • Loading branch information
snuffyDev committed Sep 24, 2022
1 parent 2bdd60b commit ebd1d86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/build.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ cli
/// so we abort
if (!adapter_installed) console.info("Error installing config.");
let hooks_ts;
const hooks_path = path.resolve(root, "./src/hooks.ts") || path.resolve(".", "../src/hooks.ts");
const hooks_path = path.resolve(root, "./src/hooks.server.ts") || path.resolve(".", "../src/hooks.server.ts");
if (adapter === "node") {
hooks_ts = fs.readFileSync(hooks_path, { encoding: "utf-8" });
let modified_hooks_ts = hooks_ts.replace(/\/\/#NODE /gm, "");
Expand Down

0 comments on commit ebd1d86

Please sign in to comment.