F
Filament14mo ago
TopKST

CSS and JS not working on Kubernetes (GCP)

I'm trying to deploy Laravel Filament (V2) on K8S (GCP) but Filament not working it not render CSS , JS. All assets has been loaded but not render. I'm trying another path like Telescope it working normally
No description
10 Replies
toeknee
toeknee14mo ago
What does the console say in the browser Have you setup the url in the .env correctly?
Dennis Koch
Dennis Koch14mo ago
What is returned as the CSS/JS?
TopKST
TopKSTOP14mo ago
Yes. i already set APP_URL and ASSET_URL as https://mydomain.com And no console error or any info
Web Hosting, Domain Name Registration - MyDomain.com
Small business web hosting offering additional business services such as: domain name registrations, email accounts, web services, and various small business solutions.
Dennis Koch
Dennis Koch14mo ago
What is the content of the files?
TopKST
TopKSTOP14mo ago
The original file content but Content-Type returned as text/html. By the way in Laravel telescope css and js return Content-Type header correctly.
No description
No description
No description
No description
Dennis Koch
Dennis Koch14mo ago
You probably need to adjust your server config then, so that the files are shipped with the appropriate mime type
TopKST
TopKSTOP14mo ago
Do you have any example? I think it already correct because the Laravel Telescope script it serve correctly
No description
Dennis Koch
Dennis Koch14mo ago
Some CDN/Caching service that might interfere? That's probably an actual file on the file system. Not a CSS/JS file routed through Laravel
TopKST
TopKSTOP14mo ago
No CDN or Caching service config now.
TopKST
TopKSTOP14mo ago
Gist
NGINX Fillament
NGINX Fillament. GitHub Gist: instantly share code, notes, and snippets.
Filament
Fix Filament assets not loading in Nginx by Ida Bagus Gede Pramana ...
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.
Want results from more Discord servers?
Add your server