Skip to content

Commit

Permalink
Merge pull request #105 from thegalactiks/remove-prefetch-package
Browse files Browse the repository at this point in the history
feat(@galactiks/astro-integration): remove prefetch package
  • Loading branch information
emmanuelgautier authored Nov 11, 2023
2 parents 155c451 + 155b37c commit 7b5df0f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 46 deletions.
2 changes: 0 additions & 2 deletions packages/adapters/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
},
"peerDependencies": {
"@astrojs/partytown": "2.0.2",
"@astrojs/prefetch": "0.4.1",
"@astrojs/react": "3.0.4",
"@astrojs/rss": "3.0.0",
"@astrojs/sitemap": "3.0.3",
Expand All @@ -55,7 +54,6 @@
},
"devDependencies": {
"@astrojs/partytown": "2.0.2",
"@astrojs/prefetch": "0.4.1",
"@astrojs/react": "3.0.4",
"@astrojs/rss": "3.0.0",
"@astrojs/sitemap": "3.0.3",
Expand Down
1 change: 1 addition & 0 deletions packages/adapters/astro/src/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default function createPlugin(

updateConfig({
site: galactiksConfig.webManifest.start_url,
prefetch: true,
vite: {
resolve: {
preserveSymlinks: true,
Expand Down
2 changes: 0 additions & 2 deletions packages/adapters/astro/src/preset.mts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { AstroIntegration } from 'astro';
import partytown from '@astrojs/partytown';
import prefetch from '@astrojs/prefetch';
import react from '@astrojs/react';
import sitemap from '@astrojs/sitemap';
import { getConfig, getDefaultLanguage, getLanguages } from '@galactiks/config';
Expand All @@ -14,7 +13,6 @@ const defaultLocale = getDefaultLanguage();
export const integrationsPreset = (): AstroIntegration[] => [
react(),
partytown(),
prefetch(),
sitemap({
i18n: defaultLocale
? {
Expand Down
70 changes: 28 additions & 42 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7b5df0f

Please sign in to comment.