Skip to content

Conversation

@antoineauger
Copy link
Contributor

@antoineauger antoineauger commented Jun 19, 2025

Description

The support for the BASE_URL environment variable introduced within #248 was sadly broken when the project migrated to Next.JS.

This PR is composed of two commits:

  1. The first commit fixes the permissions when copying the static assets for the Docker image (in particular, the logo-studio.svg was not loading, even when running without a BASE_URL - see below)
  2. The second commit adds the basePath Next.JS config option as documented within the official doc.

Related issue(s)

Related to #249

logo-studio.svg not loading due to nginx file permissions

Screenshot from 2025-06-19 14-53-24

PR test

I built locally the image and deployed it on our k8s environment with BASE_URL=/tools/asyncapi-studio

Unsaved Image 1

/cc @fgreinacher

🛠️ with ❤️ by Siemens

@changeset-bot
Copy link

changeset-bot bot commented Jun 19, 2025

⚠️ No Changeset found

Latest commit: 2fefe53

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link

netlify bot commented Jun 19, 2025

Deploy Preview for asyncapi-studio-design-system ready!

Name Link
🔨 Latest commit 2fefe53
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-studio-design-system/deploys/68ac2737e357620008489c75
😎 Deploy Preview https://deploy-preview-1208--asyncapi-studio-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jun 19, 2025

Deploy Preview for modest-rosalind-098b67 ready!

Name Link
🔨 Latest commit 2fefe53
🔍 Latest deploy log https://app.netlify.com/projects/modest-rosalind-098b67/deploys/68ac2737807bf9000877f711
😎 Deploy Preview https://deploy-preview-1208--modest-rosalind-098b67.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@sonarqubecloud
Copy link

@antoineauger
Copy link
Contributor Author

I think this PR is ready for review, thanks 🏓

@antoineauger antoineauger marked this pull request as ready for review June 19, 2025 13:33
@antoineauger
Copy link
Contributor Author

@magicmatatjahu Do you think this PR makes sense?

In the meantime, we built locally our own asyncapi/studio patch image but would really love to fix it upstream as well 😺

@antoineauger antoineauger force-pushed the fix/studio-docker-build branch from 76caca0 to 49f070a Compare July 30, 2025 13:50
@github-project-automation github-project-automation bot moved this from Backlog to In progress in Studio - Kanban Aug 14, 2025
@antoineauger antoineauger changed the title Fix/studio docker build fix: support BASE_URL for studio docker builds Aug 19, 2025
@antoineauger antoineauger force-pushed the fix/studio-docker-build branch from 72a9470 to 6bf38e5 Compare August 19, 2025 14:23
Copy link
Member

@princerajpoot20 princerajpoot20 left a comment

Choose a reason for hiding this comment

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

Good work @antoineauger . Just left a minor suggestion.

@antoineauger antoineauger force-pushed the fix/studio-docker-build branch from 55c23e7 to d32e9d9 Compare August 25, 2025 08:59
@antoineauger antoineauger force-pushed the fix/studio-docker-build branch from d32e9d9 to 2fefe53 Compare August 25, 2025 09:04
@sonarqubecloud
Copy link

@antoineauger
Copy link
Contributor Author

@princerajpoot20 I cleaned up the unnecessary changes, this should be ready now 👌🏻

Copy link
Member

@princerajpoot20 princerajpoot20 left a comment

Choose a reason for hiding this comment

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

LGTM! Good work @antoineauger

@princerajpoot20
Copy link
Member

@Shurtu-gal PTAL

Copy link
Collaborator

@Shurtu-gal Shurtu-gal left a comment

Choose a reason for hiding this comment

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

Lgtm @princerajpoot20

Thanks for the awesome work @antoineauger

@github-project-automation github-project-automation bot moved this from In progress to Ready in Studio - Kanban Aug 25, 2025
@Shurtu-gal
Copy link
Collaborator

/rtm

@asyncapi-bot asyncapi-bot merged commit b341f21 into asyncapi:master Aug 25, 2025
20 checks passed
@github-project-automation github-project-automation bot moved this from Ready to Done in Studio - Kanban Aug 25, 2025
@antoineauger antoineauger deleted the fix/studio-docker-build branch August 25, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants