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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
At the moment the directus url we specify in our nuxt.config only works with a trailing slash.
In particular it’s the images URL that will be generated like
https://example.comassets/…
instead ofhttps://example.com/assets/…
.I would suggest to allow both: an URL with and without a trailing slash. That would become more convenient in terms of DX.
Something like this would work for both:
`${url.replace(/\/$/, '')}/assets/…`
Beta Was this translation helpful? Give feedback.
All reactions