Skip to content

Commit

Permalink
Redefine __dirname, since it needs to be defined differently when usi…
Browse files Browse the repository at this point in the history
…ng esmodules
  • Loading branch information
selbekk committed Apr 8, 2024
1 parent 95fdbe6 commit d46e4f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/docs/app/utils/icons.server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import fs from "fs/promises";
import path from "path";
import { fileURLToPath } from "url";

const __filename = fileURLToPath(import.meta.url);

const __dirname = path.dirname(__filename);

/** Gets the file buffer of the spor icon .zip file */
export const getIconsZipFile = async () => {
Expand Down

0 comments on commit d46e4f9

Please sign in to comment.