Skip to content

Commit 9df14b4

Browse files
committed
Remove astro-icon dependency and config
1 parent ea1b0b7 commit 9df14b4

3 files changed

Lines changed: 287 additions & 4425 deletions

File tree

astro.config.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import AstroPWA from '@vite-pwa/astro'
22
import db from '@astrojs/db'
3-
import icon from 'astro-icon'
43
import lit from '@semantic-ui/astro-lit'
54
import mdx from '@astrojs/mdx'
65
import sentry from '@sentry/astro'
@@ -24,12 +23,8 @@ import {
2423
environmentalVariablesConfig,
2524
getSentryAuthToken,
2625
getSiteUrl,
27-
//isDev,
2826
isE2eTest,
29-
//isProd,
30-
isUnitTest,
3127
isVercel,
32-
//linkValidatorPlugin,
3328
markdownConfig,
3429
pwaConfig,
3530
vercelConfig,
@@ -46,15 +41,10 @@ import { createSerializeFunction, pagesJsonWriter } from './src/integrations/sit
4641
// Ensure Vite's HMR websocket connects through the same exposed dev server port used by Astro.
4742
const devServerPort = Number(process.env['DEV_SERVER_PORT'] ?? 4321)
4843

49-
const sharedTestIntegrations = [
50-
icon(),
51-
]
52-
5344
const standardIntegrations = [
5445
AstroPWA(pwaConfig),
5546
/** Astro DB - uses Tursa for backing store in production */
5647
db(),
57-
...sharedTestIntegrations,
5848
mdx(markdownConfig),
5949
/** Generate favicons and PWA icons from source SVG */
6050
faviconGenerator(),
@@ -108,7 +98,7 @@ export default defineConfig({
10898
* can change config, they're ran when the helper's called. This causes problems for
10999
* unit testing integrations.
110100
*/
111-
integrations: isUnitTest() ? sharedTestIntegrations : standardIntegrations,
101+
integrations: standardIntegrations,
112102
/** API routes are marked in their files for SSR */
113103
output: 'static',
114104
prefetch: true,

0 commit comments

Comments
 (0)