Skip to content

Commit

Permalink
revert jiti to v1 (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahkhanjani authored Oct 30, 2024
1 parent 51b361b commit 4daa648
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/nextjs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { fileURLToPath } from "url";
import { createJiti } from "jiti";
import createJiti from "jiti";

// Import env files to validate at build time. Use jiti so we can load .ts files in here.
await createJiti(fileURLToPath(import.meta.url)).import("./src/env");
createJiti(fileURLToPath(import.meta.url))("./src/env");

/** @type {import("next").NextConfig} */
const config = {
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@types/react-dom": "catalog:react18",
"dotenv-cli": "^7.4.2",
"eslint": "catalog:",
"jiti": "^2.3.3",
"jiti": "^1.21.6",
"prettier": "catalog:",
"tailwindcss": "catalog:",
"typescript": "catalog:"
Expand Down
54 changes: 51 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit 4daa648

@konnsim
Copy link

@konnsim konnsim commented on 4daa648 Nov 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this reverted?

Please sign in to comment.