Skip to content

Commit

Permalink
chore: Update gitignore and VS Code settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Harold-Anderson committed Aug 8, 2024
1 parent 9f020ee commit a9ba9c5
Show file tree
Hide file tree
Showing 10 changed files with 1,119 additions and 516 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ pnpm-lock.yaml

.astro

.netlify
1 change: 0 additions & 1 deletion .netlify/deploy/v1/config.json

This file was deleted.

7 changes: 5 additions & 2 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ module.exports = {
trailingComma: 'es5',
useTabs: false,

plugins: [require.resolve('prettier-plugin-astro')],
plugins: [require.resolve('prettier-plugin-astro'),
require.resolve('@prettier/plugin-xml')],

overrides: [{ files: '*.astro', options: { parser: 'astro' } }],
overrides: [{ files: '*.astro', options: { parser: 'astro' } },
{ files: '*.xml', options: { parser: 'xml' } }
],
};
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"[astro]": {
"editor.defaultFormatter": "astro-build.astro-vscode"
},
"[xml]": {
"editor.defaultFormatter": "DotJoshJohnson.xml"
},
"prettier.requireConfig": true,
"yaml.schemas": {
"./.vscode/astrowind/config-schema.json": "/src/config.yaml"
},
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,12 @@ prefer.

#### Deploy to Netlify

Clone this repository on own GitHub account and deploy to Netlify:

[![Netlify Deploy button](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/onwidget/astrowind)
Please note that Netlify does not mitigate DDoS attacks, which could lead to unexpected large bills. We recommend deploying to Cloudflare Pages or Github Pages instead. Instructions for Netlify have therefore been removed.

#### Deploy to Vercel

Please note that Vercel does not allow commercial projects on the free plan. Consider deploying to Cloudflare Pages or Github Pages instead.

Clone this repository on own GitHub account and deploy to Vercel:

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fonwidget%2Fastrowind)
Expand Down
4 changes: 1 addition & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import icon from 'astro-icon';
import compress from '@playform/compress';
import astrowind from './vendor/integration';
import { readingTimeRemarkPlugin, responsiveTablesRehypePlugin, lazyImagesRehypePlugin } from './src/utils/frontmatter.mjs';
import netlify from "@astrojs/netlify";
import { fileURLToPath } from 'url';
import path from 'path';

Expand Down Expand Up @@ -77,6 +76,5 @@ export default defineConfig({
build: {
sourcemap: true, // Enable source maps
}
},
adapter: netlify()
}
});
Loading

0 comments on commit a9ba9c5

Please sign in to comment.