-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Sasha <sasha@codemod.com>
- Loading branch information
1 parent
edb3d80
commit 3057d7c
Showing
13 changed files
with
40 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
import { env } from "./env"; | ||
|
||
const config = { | ||
const publicConfig = { | ||
sanity: { | ||
projectId: env.NEXT_PUBLIC_SANITY_PROJECT_ID || "", | ||
dataset: env.NEXT_PUBLIC_SANITY_DATASET || "", | ||
projectId: env.NEXT_PUBLIC_SANITY_PROJECT_ID ?? "", | ||
dataset: env.NEXT_PUBLIC_SANITY_DATASET ?? "", | ||
// Not exposed to the front-end, used solely by the server | ||
token: env.SANITY_API_TOKEN || "", | ||
apiVersion: env.NEXT_PUBLIC_SANITY_API_VERSION || "2023-06-21", | ||
revalidateSecret: env.SANITY_REVALIDATE_SECRET || "", | ||
apiVersion: env.NEXT_PUBLIC_SANITY_API_VERSION ?? "2023-06-21", | ||
studioUrl: "/manage", | ||
}, | ||
siteName: "Codemod", | ||
siteDomain: env.NEXT_PUBLIC_SITE_DOMAIN || "", | ||
baseUrl: env.NEXT_PUBLIC_BASE_URL || "", | ||
siteDomain: env.NEXT_PUBLIC_SITE_DOMAIN ?? "", | ||
baseUrl: env.NEXT_PUBLIC_BASE_URL ?? "", | ||
}; | ||
|
||
export default config; | ||
export default publicConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters