Implement recommended config changes

This commit is contained in:
Maarten Dekker
2023-01-26 11:27:05 +01:00
parent 87c68e8e0d
commit eb9db7c190
4 changed files with 6 additions and 4 deletions

1
.gitignore vendored
View File

@@ -1,6 +1,7 @@
# build output # build output
dist/ dist/
.output/ .output/
.astro
# dependencies # dependencies
node_modules/ node_modules/

View File

@@ -1,10 +1,9 @@
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind"; import tailwind from "@astrojs/tailwind";
import image from "@astrojs/image"; import image from "@astrojs/image";
import mdx from "@astrojs/mdx"; import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap"; import sitemap from "@astrojs/sitemap";
export default defineConfig({ export default {
site: "https://astroship.web3templates.com", site: "https://astroship.web3templates.com",
integrations: [ integrations: [
tailwind(), tailwind(),
@@ -14,4 +13,4 @@ export default defineConfig({
mdx(), mdx(),
sitemap(), sitemap(),
], ],
}); };

3
src/env.d.ts vendored
View File

@@ -1 +1,2 @@
/// <reference types="astro/client" /> /// <reference path="../.astro/types.d.ts" />
/// <reference types="@astrojs/image/client" />

View File

@@ -1,6 +1,7 @@
{ {
"extends": "astro/tsconfigs/base", "extends": "astro/tsconfigs/base",
"compilerOptions": { "compilerOptions": {
"strictNullChecks": true,
"baseUrl": "src", "baseUrl": "src",
"paths": { "paths": {
"@lib/*": [ "@lib/*": [