Skip to content
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

URL-Bug #4

Open
PSMJonas opened this issue Sep 11, 2023 · 0 comments
Open

URL-Bug #4

PSMJonas opened this issue Sep 11, 2023 · 0 comments

Comments

@PSMJonas
Copy link

PSMJonas commented Sep 11, 2023

Unfortunately, if I leave the baseURL empty and set the apiVersion to null, the URL is not output correctly:

export default function App({ Component, pageProps }) {
    const cloudimageConfig = {
        token: "mytoken",
        baseURL: "/",
        apiVersion: null,
        ssr: true
    };
    
    return (
        <CloudimageProvider config={cloudimageConfig}>
            <Component {...pageProps} />
        </CloudimageProvider>
    )
}

The image output looks like this:

<Img src="https://backend.k-aktuell.de/wp-content/uploads/2023/09/placeholder-scaled.jpg" className={styles["logo"]} width="300" height="64" />

The following URL is output:

https://mytoken.cloudimg.iohttps://backend.k-aktuell.de/wp-content/uploads/2023/09/placeholder-scaled.jpg?org_if_sml=1

The URL is missing a slash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant