Skip to content

Commit e225592

Browse files
committed
blog
1 parent 2303046 commit e225592

File tree

11 files changed

+9831
-9831
lines changed

11 files changed

+9831
-9831
lines changed

astro.config.mjs

Lines changed: 78 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,78 @@
1-
import { defineConfig } from "astro/config";
2-
import path from "path";
3-
import { fileURLToPath } from "url";
4-
// Remove direct import and let Astro handle plugin loading
5-
6-
import mdx from "@astrojs/mdx";
7-
8-
import playformCompress from "@playform/compress";
9-
10-
import react from "@astrojs/react";
11-
12-
import sitemap from "@astrojs/sitemap";
13-
14-
import partytown from "@astrojs/partytown";
15-
16-
const __filename = fileURLToPath(import.meta.url);
17-
18-
const __dirname = path.dirname(__filename);
19-
20-
// https://astro.build/config
21-
export default defineConfig({
22-
site: "https://defguard.net",
23-
trailingSlash: "ignore",
24-
prefetch: true,
25-
build: {
26-
assets: 'assets',
27-
},
28-
// Keep configuration simple to avoid conflicts
29-
mdx: {
30-
// Will inherit from markdown config
31-
},
32-
integrations: [
33-
react(),
34-
mdx(),
35-
playformCompress(),
36-
sitemap({
37-
i18n: {
38-
defaultLocale: "en",
39-
locales: {
40-
en: "en-US",
41-
},
42-
},
43-
}),
44-
partytown({
45-
config: {
46-
forward: ["dataLayer.push"],
47-
},
48-
}),
49-
],
50-
markdown: {
51-
rehypePlugins: [
52-
// Keep string-based configuration which works with both versions
53-
['rehype-external-links', {
54-
target: "_blank",
55-
rel: ["nofollow", "noopener", "noreferrer"],
56-
}],
57-
],
58-
shikiConfig: {
59-
theme: 'github-dark',
60-
wrap: true
61-
},
62-
},
63-
vite: {
64-
resolve: {
65-
alias: {
66-
"@/": `${path.resolve(__dirname, "src")}/`,
67-
},
68-
},
69-
css: {
70-
preprocessorOptions: {
71-
scss: {
72-
api: "modern",
73-
additionalData: `@use "@/styles/mixins" as *;`,
74-
},
75-
},
76-
},
77-
},
78-
});
1+
import { defineConfig } from "astro/config";
2+
import path from "path";
3+
import { fileURLToPath } from "url";
4+
// Remove direct import and let Astro handle plugin loading
5+
6+
import mdx from "@astrojs/mdx";
7+
8+
import playformCompress from "@playform/compress";
9+
10+
import react from "@astrojs/react";
11+
12+
import sitemap from "@astrojs/sitemap";
13+
14+
import partytown from "@astrojs/partytown";
15+
16+
const __filename = fileURLToPath(import.meta.url);
17+
18+
const __dirname = path.dirname(__filename);
19+
20+
// https://astro.build/config
21+
export default defineConfig({
22+
site: "https://defguard.net",
23+
trailingSlash: "ignore",
24+
prefetch: true,
25+
build: {
26+
assets: 'assets',
27+
},
28+
// Keep configuration simple to avoid conflicts
29+
mdx: {
30+
// Will inherit from markdown config
31+
},
32+
integrations: [
33+
react(),
34+
mdx(),
35+
playformCompress(),
36+
sitemap({
37+
i18n: {
38+
defaultLocale: "en",
39+
locales: {
40+
en: "en-US",
41+
},
42+
},
43+
}),
44+
partytown({
45+
config: {
46+
forward: ["dataLayer.push"],
47+
},
48+
}),
49+
],
50+
markdown: {
51+
rehypePlugins: [
52+
// Keep string-based configuration which works with both versions
53+
['rehype-external-links', {
54+
target: "_blank",
55+
rel: ["nofollow", "noopener", "noreferrer"],
56+
}],
57+
],
58+
shikiConfig: {
59+
theme: 'github-dark',
60+
wrap: true
61+
},
62+
},
63+
vite: {
64+
resolve: {
65+
alias: {
66+
"@/": `${path.resolve(__dirname, "src")}/`,
67+
},
68+
},
69+
css: {
70+
preprocessorOptions: {
71+
scss: {
72+
api: "modern",
73+
additionalData: `@use "@/styles/mixins" as *;`,
74+
},
75+
},
76+
},
77+
},
78+
});

package.json

Lines changed: 78 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,78 @@
1-
{
2-
"name": "defguard-website",
3-
"type": "module",
4-
"version": "0.0.1",
5-
"scripts": {
6-
"dev": "astro dev",
7-
"start": "astro dev",
8-
"build": "astro check && astro build",
9-
"preview": "astro preview",
10-
"astro": "astro",
11-
"prettier:fix": "prettier --write src",
12-
"eslint:fix": "eslint src/**/*.{ts,tsx,astro} --fix",
13-
"fix": "pnpm prettier:fix && pnpm eslint:fix",
14-
"prettier:lint": "prettier --check src",
15-
"eslint:lint": "eslint src/**/*.{ts,tsx,astro} --max-warnings 0",
16-
"lint": "pnpm prettier:lint && pnpm tsc && pnpm eslint:lint && pnpm astro check"
17-
},
18-
"packageManager": "[email protected]",
19-
"pnpm": {
20-
"default": "9.14.2"
21-
},
22-
"engines": {
23-
"node": ">=23"
24-
},
25-
"dependencies": {
26-
"@astrojs/check": "^0.9.4",
27-
"@astrojs/mdx": "^3.1.9",
28-
"@astrojs/partytown": "^2.1.2",
29-
"@astrojs/react": "^3.6.3",
30-
"@astrojs/sitemap": "^3.2.1",
31-
"@astrolib/analytics": "^0.6.1",
32-
"@floating-ui/react": "^0.26.28",
33-
"@playform/compress": "^0.1.6",
34-
"@tuplo/numberfmt": "^1.11.0",
35-
"astro": "^4.16.16",
36-
"astro-blog": "^0.2.3",
37-
"astro-font": "^0.1.81",
38-
"astro-imagetools": "^0.9.0",
39-
"clsx": "^2.1.1",
40-
"lodash-es": "^4.17.21",
41-
"motion": "^11.12.0",
42-
"react": "^18.3.1",
43-
"react-dom": "^18.3.1",
44-
"react-markdown": "^9.0.1",
45-
"react-multi-carousel": "^2.8.5",
46-
"react-slick": "^0.30.2",
47-
"rehype-external-links": "^2.0.0",
48-
"rehype-raw": "^7.0.0",
49-
"sass": "^1.81.0",
50-
"sharp": "0.33.5",
51-
"short-unique-id": "^5.2.0",
52-
"slick-carousel": "^1.8.1",
53-
"typescript": "^5.6.3",
54-
"use-breakpoint": "^4.0.5",
55-
"use-sync-external-store": "^1.2.2",
56-
"user-agent-data-types": "^0.4.2",
57-
"zod": "^3.23.8",
58-
"zustand": "^5.0.1"
59-
},
60-
"devDependencies": {
61-
"@astrojs/ts-plugin": "^1.10.4",
62-
"@eslint/js": "^9.15.0",
63-
"@types/lodash-es": "^4.17.12",
64-
"@types/react": "^18.3.12",
65-
"@types/react-dom": "^18.3.1",
66-
"@types/react-slick": "^0.23.13",
67-
"eslint": "^9.15.0",
68-
"eslint-config-prettier": "^9.1.0",
69-
"eslint-plugin-astro": "^1.3.1",
70-
"eslint-plugin-react": "^7.37.2",
71-
"eslint-plugin-react-hooks": "5.0",
72-
"eslint-plugin-simple-import-sort": "^12.1.1",
73-
"globals": "^15.12.0",
74-
"prettier": "^3.3.3",
75-
"prettier-plugin-astro": "^0.14.1",
76-
"typescript-eslint": "^8.15.0"
77-
}
78-
}
1+
{
2+
"name": "defguard-website",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"scripts": {
6+
"dev": "astro dev",
7+
"start": "astro dev",
8+
"build": "astro check && astro build",
9+
"preview": "astro preview",
10+
"astro": "astro",
11+
"prettier:fix": "prettier --write src",
12+
"eslint:fix": "eslint src/**/*.{ts,tsx,astro} --fix",
13+
"fix": "pnpm prettier:fix && pnpm eslint:fix",
14+
"prettier:lint": "prettier --check src",
15+
"eslint:lint": "eslint src/**/*.{ts,tsx,astro} --max-warnings 0",
16+
"lint": "pnpm prettier:lint && pnpm tsc && pnpm eslint:lint && pnpm astro check"
17+
},
18+
"packageManager": "[email protected]",
19+
"pnpm": {
20+
"default": "9.14.2"
21+
},
22+
"engines": {
23+
"node": ">=23"
24+
},
25+
"dependencies": {
26+
"@astrojs/check": "^0.9.4",
27+
"@astrojs/mdx": "^3.1.9",
28+
"@astrojs/partytown": "^2.1.2",
29+
"@astrojs/react": "^3.6.3",
30+
"@astrojs/sitemap": "^3.2.1",
31+
"@astrolib/analytics": "^0.6.1",
32+
"@floating-ui/react": "^0.26.28",
33+
"@playform/compress": "^0.1.6",
34+
"@tuplo/numberfmt": "^1.11.0",
35+
"astro": "^4.16.16",
36+
"astro-blog": "^0.2.3",
37+
"astro-font": "^0.1.81",
38+
"astro-imagetools": "^0.9.0",
39+
"clsx": "^2.1.1",
40+
"lodash-es": "^4.17.21",
41+
"motion": "^11.12.0",
42+
"react": "^18.3.1",
43+
"react-dom": "^18.3.1",
44+
"react-markdown": "^9.0.1",
45+
"react-multi-carousel": "^2.8.5",
46+
"react-slick": "^0.30.2",
47+
"rehype-external-links": "^2.0.0",
48+
"rehype-raw": "^7.0.0",
49+
"sass": "^1.81.0",
50+
"sharp": "0.33.5",
51+
"short-unique-id": "^5.2.0",
52+
"slick-carousel": "^1.8.1",
53+
"typescript": "^5.6.3",
54+
"use-breakpoint": "^4.0.5",
55+
"use-sync-external-store": "^1.2.2",
56+
"user-agent-data-types": "^0.4.2",
57+
"zod": "^3.23.8",
58+
"zustand": "^5.0.1"
59+
},
60+
"devDependencies": {
61+
"@astrojs/ts-plugin": "^1.10.4",
62+
"@eslint/js": "^9.15.0",
63+
"@types/lodash-es": "^4.17.12",
64+
"@types/react": "^18.3.12",
65+
"@types/react-dom": "^18.3.1",
66+
"@types/react-slick": "^0.23.13",
67+
"eslint": "^9.15.0",
68+
"eslint-config-prettier": "^9.1.0",
69+
"eslint-plugin-astro": "^1.3.1",
70+
"eslint-plugin-react": "^7.37.2",
71+
"eslint-plugin-react-hooks": "5.0",
72+
"eslint-plugin-simple-import-sort": "^12.1.1",
73+
"globals": "^15.12.0",
74+
"prettier": "^3.3.3",
75+
"prettier-plugin-astro": "^0.14.1",
76+
"typescript-eslint": "^8.15.0"
77+
}
78+
}

0 commit comments

Comments
 (0)