You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is, that it only works in development and not in production.
I can click on the image and get a lightbox that lets me zoom in development. In production, the js seems to load, but if I click the image, it is opened in a new tab or the lightbox appears in the end of the document and not absolute.
I think the adapter is the problem and not starlight, meaning the demo link is pretty useless, because it is running the dev server too, which works...
What's the expected result?
The same result I get using the development server.
@jonasfroeller I'm not sure about this, but does astro support importing style sheets in client side scripts? In the docs there is only mention of importing them in the front matter. Could you try moving the style import to the front matter?
Edit: this could also be related to #7761. Have you tried using the component in a plain astro file and not MDX? Does that fix the issue in prod?
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Only tested in Chrome and Tor.
Describe the Bug
I have a component for Photoswipe:
PhotoswipeImage.astro:
and I use it like this:
create-monitor.mdx:
The problem is, that it only works in development and not in production.
I can click on the image and get a lightbox that lets me zoom in development. In production, the js seems to load, but if I click the image, it is opened in a new tab or the lightbox appears in the end of the document and not absolute.
I think the adapter is the problem and not starlight, meaning the demo link is pretty useless, because it is running the dev server too, which works...
What's the expected result?
The same result I get using the development server.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-qtp7bk?file=src%2Fcontent%2Fdocs%2Findex.mdx
Participation
The text was updated successfully, but these errors were encountered: