Initial commit: New MoreminiMore website with fresh design

This commit is contained in:
MoreminiMore
2026-04-22 01:59:05 +07:00
commit 76409638cc
14010 changed files with 2052041 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
import { ASTRO_VITE_ENVIRONMENT_NAMES } from "../core/constants.js";
const ASTRO_STATIC_PATHS_MODULE_ID = "astro:static-paths";
const ASTRO_STATIC_PATHS_RESOLVED_ID = "\0" + ASTRO_STATIC_PATHS_MODULE_ID;
function vitePluginStaticPaths() {
return {
name: "astro:static-paths",
enforce: "pre",
resolveId: {
filter: {
id: new RegExp(`^${ASTRO_STATIC_PATHS_MODULE_ID}$`)
},
handler() {
return ASTRO_STATIC_PATHS_RESOLVED_ID;
}
},
load: {
filter: {
id: new RegExp(`^${ASTRO_STATIC_PATHS_RESOLVED_ID}$`)
},
handler() {
if (this.environment?.name !== ASTRO_VITE_ENVIRONMENT_NAMES.prerender) {
return {
code: `export class StaticPaths { async getAll() { return []; } }`
};
}
return {
code: `export { StaticPaths } from 'astro/runtime/prerender/static-paths.js';`
};
}
}
};
}
export {
vitePluginStaticPaths as default
};