Skip to content

Commit

Permalink
Merge pull request #2 from alexisdechiara/vercel
Browse files Browse the repository at this point in the history
Mise à jour en  version 1.0.1
  • Loading branch information
alexisdechiara committed May 28, 2023
2 parents 4eb1c8e + 014bd1f commit c370e4a
Show file tree
Hide file tree
Showing 8 changed files with 397 additions and 156 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ pnpm-debug.log*

# Built Visual Studio Code Extensions
*.vsix
.vscode/
.vscode/
.vercel
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"semi": true,
"singleQuote": false,
"printWidth": 120,
"endOfLine":"auto",
"plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
"pluginSearchDirs": false
}
147 changes: 64 additions & 83 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,89 +6,70 @@ import svelte from "@astrojs/svelte";
import partytown from "@astrojs/partytown";
import compress from "astro-compress";
import sitemap from "@astrojs/sitemap";

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

// https://astro.build/config
export default defineConfig({
site: "https://ledicodugeek.geekly.blog",
integrations: [
tailwind({
config: {
applyBaseStyles: false,
},
}),
image(),
svelte(),
AstroPWA({
mode: "development",
base: "/",
scope: "/",
includeAssets: ["favicon.ico", "apple-touch-icon.png", "masked-icon.svg"],
registerType: "autoUpdate",
manifest: {
name: "Le dico du geek",
description: "Le dictionnaire de la culture geek",
theme_color: "#121C40",
icons: [
{
src: "/favicon/pwa-48x48.png",
sizes: "48x48",
type: "image/png",
purpose: "maskable",
},
{
src: "/favicon/pwa-72x72.png",
sizes: "72x72",
type: "image/png",
purpose: "maskable",
},
{
src: "/favicon/pwa-96x96.png",
sizes: "96x96",
type: "image/png",
purpose: "maskable",
},
{
src: "/favicon/pwa-128x128.png",
sizes: "128x128",
type: "image/png",
purpose: "maskable",
},
{
src: "/favicon/pwa-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "/favicon/pwa-384x384.png",
sizes: "384x384",
type: "image/png",
purpose: "maskable",
},
{
src: "/favicon/pwa-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable",
},
],
},
workbox: {
navigateFallback: "/404",
globPatterns: ["**/*.{css,js,html,svg,png,ico,txt}"],
},
devOptions: {
enabled: true,
navigateFallbackAllowlist: [/^\/404$/],
},
}),
partytown(),
compress(),
sitemap(),
],
output: "server",
adapter: node({
mode: "standalone",
}),
});
site: "https://ledicodugeek.geekly.blog",
integrations: [tailwind({
config: {
applyBaseStyles: false
}
}), image(), svelte(), AstroPWA({
mode: "development",
base: "/",
scope: "/",
includeAssets: ["favicon.ico", "apple-touch-icon.png", "masked-icon.svg"],
registerType: "autoUpdate",
manifest: {
name: "Le dico du geek",
description: "Le dictionnaire de la culture geek",
theme_color: "#121C40",
icons: [{
src: "/favicon/pwa-48x48.png",
sizes: "48x48",
type: "image/png",
purpose: "maskable"
}, {
src: "/favicon/pwa-72x72.png",
sizes: "72x72",
type: "image/png",
purpose: "maskable"
}, {
src: "/favicon/pwa-96x96.png",
sizes: "96x96",
type: "image/png",
purpose: "maskable"
}, {
src: "/favicon/pwa-128x128.png",
sizes: "128x128",
type: "image/png",
purpose: "maskable"
}, {
src: "/favicon/pwa-192x192.png",
sizes: "192x192",
type: "image/png"
}, {
src: "/favicon/pwa-384x384.png",
sizes: "384x384",
type: "image/png",
purpose: "maskable"
}, {
src: "/favicon/pwa-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable"
}]
},
workbox: {
navigateFallback: "/404",
globPatterns: ["**/*.{css,js,html,svg,png,ico,txt}"]
},
devOptions: {
enabled: true,
navigateFallbackAllowlist: [/^\/404$/]
}
}), partytown(), compress(), sitemap()],
output: "server",
adapter: vercel()
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dico-du-geek",
"type": "module",
"version": "1.0.0",
"version": "1.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
Expand All @@ -11,12 +11,12 @@
},
"dependencies": {
"@astrojs/image": "^0.16.8",
"@astrojs/node": "^5.1.4",
"@astrojs/partytown": "^1.2.2",
"@astrojs/sitemap": "^1.3.1",
"@astrojs/svelte": "^2.1.1",
"@astrojs/tailwind": "^3.1.2",
"@astrojs/ts-plugin": "^1.0.6",
"@astrojs/vercel": "^3.4.0",
"@wbmnky/license-report-generator": "^2.1.3",
"astro": "^2.5.5",
"astro-compress": "^1.1.44",
Expand Down
Loading

0 comments on commit c370e4a

Please sign in to comment.