Couldn't Load Static Files

I’m using glitch as my website hosting. I’m using express as server. I’m doing this:

this.app.use("/assets", express.static(join(process.cwd(), "assets")));
this.app.use(express.static(join(process.cwd(), "node_modules", "mdb-ui-kit", "css")));
this.app.use(express.static(join(process.cwd(), "node_modules", "mdb-ui-kit", "js")));

I’m trying to access with glitch.me domain, it works as fine, the assets static is loaded as normally but when I’m using my custom domain (Using cloudflare as dns manager), I can access the “mdb-ui-kit” files but not with /assets. I don’t know what’s the point of this. I’m confused

Could you show us your project?

Glitch URL: https://frutbits-payment-gateway.glitch.me/
Custom Domain: https://payment.frutbits.xyz

Well, its loaded now. I think its my browser cache. Sorry for bothering you guys, thanks!

2 Likes

No worries, glad you got it working.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.