-
Notifications
You must be signed in to change notification settings - Fork 65
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
bug : Update from supabase studio version v0.23.09 to v0.23.11. #87
Comments
Confirming- directory now exists in subdirectory instead of root as mentioned in psyrenpark's commit message: supabase/supabase#18915 |
in addition, the version: 1
applications:
- appRoot: apps/studio
frontend:
phases:
preBuild:
commands:
- echo POSTGRES_PASSWORD=$(aws secretsmanager get-secret-value --secret-id $DB_SECRET_ARN --query SecretString | jq -r . | jq -r .password) >> .env.production
- echo SUPABASE_ANON_KEY=$(aws ssm get-parameter --region $SUPABASE_REGION --name $ANON_KEY_NAME --query Parameter.Value) >> .env.production
- echo SUPABASE_SERVICE_KEY=$(aws ssm get-parameter --region $SUPABASE_REGION --name $SERVICE_KEY_NAME --query Parameter.Value) >> .env.production
- env | grep -e STUDIO_PG_META_URL >> .env.production
- env | grep -e SUPABASE_ >> .env.production
- env | grep -e NEXT_PUBLIC_ >> .env.production
- cd ../../
- npx [email protected] prune --scope=studio
- npm clean-install
build:
commands:
- npx turbo run build --scope=studio --include-dependencies --no-deps
- npm prune --omit=dev
postBuild:
commands:
- cd apps/studio
- rsync -av --ignore-existing .next/standalone/apps/studio/ .next/standalone
- rsync -av --ignore-existing .next/standalone/node_modules/ .next/standalone/node_modules
- rm -rf .next/standalone/apps
- cp .env .env.production .next/standalone/
- rsync -av --ignore-existing public/ .next/standalone/public
- rsync -av --ignore-existing .next/static/ .next/standalone/.next/static
artifacts:
baseDirectory: .next
files:
- "**/*"
cache:
paths:
- node_modules/**/* |
has anyone got this working? |
@binury I see this when running with your changes
|
The workaround that worked for me was bumping the deployed version back down to 0.23.09. And then making any changes you would want to make. |
Bug report
I confirm this is a bug with Supabase, not with my own application.
I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
While attempting to update the studioBranch to the latest version, I encountered an error. It appears that the directory structure in Supabase has changed between versions v0.23.09 and v0.23.11, particularly the path from /studio to /apps/studio. This change seems to affect the build process, causing it to fail.
To Reproduce
Steps to reproduce the behavior:
BUG : Update from supabase studio version v0.23.09 to v0.23.11.
Observe the directory change from /studio to /apps/studio.
Attempt to build using the current configuration.
Notice the build process fails due to the directory change.
Expected behavior
The build process should adapt to the updated directory structure without causing any errors, or the documentation should provide clear instructions on how to handle such changes in directory paths.
Screenshots
If applicable, add screenshots to help explain your problem.
System information
This section indicates the use of 'studio' which may need to be updated to 'apps/studio'.
The text was updated successfully, but these errors were encountered: