Some Code Cleanup
This commit is contained in:
@ -5,6 +5,8 @@ import configureI18n from "./astro-i18n.adapter";
|
||||
import sitemap from "@astrojs/sitemap";
|
||||
|
||||
import robotsTxt from "astro-robots-txt";
|
||||
import {resolve} from "node:url";
|
||||
import path from "node:path";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
@ -30,5 +32,19 @@ export default defineConfig({
|
||||
disallow: ["/admin", "/login", "/dashboard", "/de", "/_astro"]
|
||||
}]
|
||||
})],
|
||||
vite: {}
|
||||
vite: {
|
||||
resolve: {
|
||||
alias: {
|
||||
"@components": path.resolve("./src/components"),
|
||||
"@pages": path.resolve("./src/pages"),
|
||||
"@styles": path.resolve("./src/styles"),
|
||||
"@utils": path.resolve("./src/util"),
|
||||
"@type": path.resolve("./src/components/types"),
|
||||
"@images": path.resolve("./src/images"),
|
||||
"@layouts": path.resolve("./src/layouts"),
|
||||
"@repo": path.resolve("./src/components/repo"),
|
||||
"@stores": path.resolve("./src/components/stores"),
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user