-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update react-loader and remove Sanity port
- Loading branch information
Showing
8 changed files
with
1,369 additions
and
849 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,9 +1,8 @@ | ||
export const projectDetails = { | ||
projectId: process.env.SANITY_STUDIO_PROJECT_ID!, | ||
dataset: process.env.SANITY_STUDIO_DATASET || 'production', | ||
port: process.env.SANITY_STUDIO_PORT || 9999, | ||
apiVersion: process.env.SANITY_STUDIO_API_VERSION || '2023-10-01', | ||
previewUrl: process.env.SANITY_STUDIO_PREVIEW_URL, | ||
previewSecret: process.env.SANITY_STUDIO_PREVIEW_SECRET, | ||
shopifyShopHandle: process.env.SANITY_STUDIO_SHOPIFY_SHOP_HANDLE, | ||
} | ||
}; |
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,31 +1,27 @@ | ||
import {defineCliConfig, getStudioEnvironmentVariables} from 'sanity/cli' | ||
import {defineCliConfig, getStudioEnvironmentVariables} from 'sanity/cli'; | ||
|
||
const envDir = '../' | ||
const envDir = '../'; | ||
// Load environment variables from the root of the project so Sanity CLI can use them | ||
getStudioEnvironmentVariables({ | ||
envFile: { | ||
mode: 'development', | ||
envDir, | ||
}, | ||
}) | ||
}); | ||
|
||
const projectId = process.env.SANITY_STUDIO_PROJECT_ID! | ||
const dataset = process.env.SANITY_STUDIO_DATASET! | ||
const port = parseInt(process.env.SANITY_STUDIO_PORT!) | ||
const projectId = process.env.SANITY_STUDIO_PROJECT_ID!; | ||
const dataset = process.env.SANITY_STUDIO_DATASET!; | ||
|
||
export default defineCliConfig({ | ||
api: { | ||
projectId, | ||
dataset, | ||
}, | ||
server: { | ||
port, | ||
}, | ||
vite: (config) => { | ||
// Tell vite to load environment variables from the root of the project so they're available in the browser | ||
// Only variables prefixed with SANITY_STUDIO_ will be available | ||
config.envDir = envDir | ||
config.envDir = envDir; | ||
|
||
return config | ||
return config; | ||
}, | ||
}) | ||
}); |
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