Skip to content

Commit

Permalink
added astro 3 with verce
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiola29298 committed Apr 22, 2024
1 parent ce9b1d6 commit 6151ba7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ import { readingTimeRemarkPlugin } from './src/utils/frontmatter.mjs';
import { ANALYTICS, SITE } from './src/utils/config.ts';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const whenExternalScripts = (items = []) => ANALYTICS.vendors.googleAnalytics.id && ANALYTICS.vendors.googleAnalytics.partytown ? Array.isArray(items) ? items.map(item => item()) : [items()] : [];
import vercel from '@astrojs/vercel/serverless';


// https://astro.build/config
export default defineConfig({
site: 'https://fabiola29298.github.io/',
base: '/ethBoliviaWebsite',
trailingSlash: SITE.trailingSlash ? 'always' : 'never',
output: 'static',
output: 'server',
adapter: vercel(),
integrations: [tailwind({
applyBaseStyles: false
}), sitemap(), mdx(), astroI18next(), icon({
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
"@astrojs/netlify": "^3.0.3",
"@astrojs/rss": "^3.0.0",
"@astrojs/sitemap": "^3.0.0",
"@astrojs/vercel": "^7.5.3",
"@astrolib/analytics": "^0.4.2",
"@astrolib/seo": "^1.0.0-beta.4",
"@fontsource-variable/inter": "^5.0.8",
"astro": "^3.1.2",
"astro": "^4.6.3",
"astro-i18next": "1.0.0-beta.21",
"astro-icon": "^1.0.0-next.2",
"limax": "4.1.0",
Expand All @@ -30,14 +31,14 @@
"devDependencies": {
"@astrojs/mdx": "^1.1.0",
"@astrojs/partytown": "^2.0.0",
"@astrojs/tailwind": "5.0.0",
"@astrojs/tailwind": "^5.1.0",
"@iconify-json/flat-color-icons": "^1.1.7",
"@iconify-json/tabler": "^1.1.91",
"@tailwindcss/typography": "^0.5.10",
"@types/lodash.merge": "^4.6.7",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"astro-compress": "2.0.15",
"astro-compress": "^2.2.22",
"eslint": "^8.49.0",
"eslint-plugin-astro": "^0.29.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
Expand Down

0 comments on commit 6151ba7

Please sign in to comment.