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

custom background issue #168

Closed
C8opmBM opened this issue Sep 15, 2022 · 7 comments
Closed

custom background issue #168

C8opmBM opened this issue Sep 15, 2022 · 7 comments

Comments

@C8opmBM
Copy link

C8opmBM commented Sep 15, 2022

I've successfully mapped the folder for custom images and icons, but every time I rebuild/restart the container, the image is not cached, I am shown the old solid color one. I need to refresh the button. This would not be a problem in itself, but this also appears in the log every time so I wonder if I do something wrong:

Failed to update prerender cache for /index [Error: EACCES: permission denied, open '/app/.next/server/pages/index.html'] {
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '/app/.next/server/pages/index.html'
}
@benphelps
Copy link
Member

Make sure you're running the latest version, and see if it still gives this error.

@C8opmBM
Copy link
Author

C8opmBM commented Sep 15, 2022

Running the :latest tag, I still have the same behaviour, but only the first time after I recreate the container.
It spawns with solid color background and no error log. After I hit refresh button (down), the background changes successfully and the docker log shows the above error.

@bat1939
Copy link

bat1939 commented Sep 16, 2022

I am also having an issue with my custom background image. I mounted the drive and moved my .jpg file to the folder. I see it in the docker cli but it doesnt load on the page.

@benphelps
Copy link
Member

You need to restart the container any time you add new images, this is a limitation of the Next.js static site server.

@stayupthetree
Copy link

You need to restart the container any time you add new images, this is a limitation of the Next.js static site server.

Can this be added into the docs? This little nugget of info would've prevented so much trouble shooting trying to figure out why my images weren't working.

@shamoon
Copy link
Collaborator

shamoon commented Feb 25, 2023

Can this be added into the docs? This little nugget of info would've prevented so much trouble shooting trying to figure out why my images weren't working.

Sure

Copy link
Contributor

github-actions bot commented Feb 5, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants