sintaxi / surge

CLI for the surge.sh CDN
https://surge.sh
2.84k stars 135 forks source link

Loading module from “https://svelte-spectre.surge.sh/__data.js?__invalid=y&__id=2” was blocked because of a disallowed MIME type (“text/html”). #479

Closed Valexr closed 1 year ago

Valexr commented 1 year ago

Loading module from “https://svelte-spectre.surge.sh/__data.js?__invalid=y&__id=2” was blocked because of a disallowed MIME type (“text/html”).

sintaxi commented 1 year ago

IIRC surge omits files beginning with underscore by default. If you create a .surgeignore file you should be whitelist that file.

Valexr commented 1 year ago

IIRC surge omits files beginning with underscore by default. If you create a .surgeignore file you should be whitelist that file.

Just file name, not searchParams?

Valexr commented 1 year ago

& why they omitted ?

Valexr commented 1 year ago

Fixed with right build config 👍🏻 surge it's 👌🏻

sintaxi commented 1 year ago

@Valexr great!

The default underscore omission was derived from conventions that some SSGs (mainly harp) and other publishing platforms have. In many situation sensitive or configuration information is stored in files that begin with underscore. Harp uses this convention heavily.

Valexr commented 1 year ago

Tx for explanation @sintaxi 👍🏻