Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
vvaldesc committed Jun 16, 2024
1 parent 3a6a02e commit 12fc30c
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import icon from "astro-icon";
import basicSsl from '@vitejs/plugin-basic-ssl';
import metaTags from "astro-meta-tags";
import path from 'path'; // Añade esta línea
import mkcert from 'vite-plugin-mkcert'
import mkcert from 'vite-plugin-mkcert';
// import serviceWorker from "astrojs-service-worker";
import auth from "auth-astro";
// import netlify from '@astrojs/netlify';
import vercel from '@astrojs/vercel';

import vercel from "@astrojs/vercel/serverless";

// https://astro.build/config
export default defineConfig({
Expand All @@ -28,11 +29,13 @@ export default defineConfig({
server: {
https: true
},
plugins: [ mkcert({
savePath: './certs', // save the generated certificate into certs directory
autoUpgrade: true, // auto upgrade the certificate if it's expired
hosts: ['localhost'], // generate certificate for localhost
})],
plugins: [mkcert({
savePath: './certs',
// save the generated certificate into certs directory
autoUpgrade: true,
// auto upgrade the certificate if it's expired
hosts: ['localhost'] // generate certificate for localhost
})],
resolve: {
alias: {
'@/*': path.resolve('./src/*'),
Expand All @@ -41,18 +44,19 @@ export default defineConfig({
'@/pages/*': path.resolve('./src/pages/*'),
'@/services/*': path.resolve('./src/services/*'),
'@/sections/*': path.resolve('./src/sections/*'),
'@/consts/*': path.resolve('./src/consts/*'),
'@/consts/*': path.resolve('./src/consts/*')
}
}
},
integrations: [tailwind(), svelte(), react(), icon({
include: {
mdi: ["*"], // (Default) Loads entire Material Design Icon set
bxs: ["*"], // Loads entire bxs set
},
mdi: ["*"],
// (Default) Loads entire Material Design Icon set
bxs: ["*"] // Loads entire bxs set
}
}), metaTags(), auth()
// , serviceWorker()
],
],
output: "server",
adapter: vercel()
});

0 comments on commit 12fc30c

Please sign in to comment.