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