-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change VITE_PUBLIC_SLOT for landing #2627
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,8 @@ const envSchema = z.object({ | |
VITE_PUBLIC_IMAGE_CDN_URL: z.string().url(), | ||
VITE_PUBLIC_IMAGE_PROXY_URL: z.string().url(), | ||
VITE_PUBLIC_IPFS_GATEWAY: z.string().url(), | ||
|
||
VITE_PUBLIC_SLOT: z.string(), | ||
Comment on lines
+36
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Environment template files missing for new VITE_PUBLIC_SLOT variable The new environment variable has been added to the schema, but there are no template files or documentation to guide its setup. This could cause issues for:
Please:
🔗 Analysis chainLGTM! Verify environment configuration. The addition of 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check if VITE_PUBLIC_SLOT is present in all environment files
# Expected: VITE_PUBLIC_SLOT should be present in all .env files
echo "Checking .env files for VITE_PUBLIC_SLOT:"
fd -e env -e env.sample -e env.preview -e env.production -e env.sepolia . client/apps/landing --exec grep -l "VITE_PUBLIC_SLOT" {} \;
Length of output: 229 Script: #!/bin/bash
# First, let's see what environment files actually exist
echo "Listing all environment files:"
fd -e env -e env.sample -e env.preview -e env.production -e env.sepolia . client/apps/landing
# Then, let's look at their content (excluding any sensitive values)
echo -e "\nChecking environment file contents (showing only VITE_ variables):"
fd -e env -e env.sample -e env.preview -e env.production -e env.sepolia . client/apps/landing --exec sh -c 'echo "\n=== {} ==="; grep "^VITE_" {} || true' \;
Length of output: 476 Script: #!/bin/bash
# Look for environment template files and documentation
echo "Searching for environment templates and setup instructions:"
fd -e example -e template -e sample . client/apps/landing
echo -e "\nChecking for README files that might contain setup instructions:"
fd README -e md . client/apps/landing
echo -e "\nIf README exists, checking its content for environment setup instructions:"
fd README -e md . client/apps/landing --exec sh -c 'echo "\n=== {} ==="; cat {} | grep -A 5 -i "env" || true' \;
Length of output: 1148 |
||
}); | ||
|
||
let env: z.infer<typeof envSchema>; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Empty VITE_PUBLIC_SLOT values need attention
The verification confirms that
VITE_PUBLIC_SLOT
is empty in multiple environments:.env.sepolia
: empty value.env.preview
: empty value.env.sample
: empty valueFor reference, production uses the value
eternum-prod
, suggesting a naming pattern that could be followed (e.g.,eternum-sepolia
for Sepolia environment).🔗 Analysis chain
Provide a default slot value for Sepolia environment.
The
VITE_PUBLIC_SLOT
is currently empty in the Sepolia environment configuration. Since this value is required for the cartridge controller configuration, please provide an appropriate default value.Let's check the slot values across different environments:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 248
Script:
Length of output: 751
Script:
Length of output: 811