Skip to content

Commit ff809bb

Browse files
committed
fix varie deploy vercel
1 parent e11a4df commit ff809bb

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

astro.config.mjs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { defineConfig } from "astro/config";
77
import pagefind from "astro-pagefind";
88
import vercel from "@astrojs/vercel/serverless";
99

10-
// https://astro.build/config
1110
export default defineConfig({
1211
site: "https://mango-flower-0edf37903.4.azurestaticapps.net/",
1312
integrations: [
@@ -21,14 +20,17 @@ export default defineConfig({
2120
icon(),
2221
sitemap(),
2322
react(),
24-
pagefind(),
23+
pagefind({
24+
// Escludi la classe ai.astro (e qualsiasi percorso derivato da essa)
25+
exclude: ["/ai"],
26+
}),
2527
tailwind({
2628
applyBaseStyles: false,
2729
}),
2830
],
29-
// output: "static",
30-
output: "hybrid",
31+
output: "hybrid", // Necessario per supportare la pagina dinamica ai.astro
3132
adapter: vercel({
32-
analytics: true,
33+
analytics: true, // Attiva il tracciamento analitico su Vercel
3334
}),
34-
});
35+
},
36+
);

src/components/ui/search.astro

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,6 @@ import SearchComponent from "astro-pagefind/components/Search";
9090
},
9191
}}
9292
/>
93-
<!-- Bottone "Ask AI" -->
94-
<a
95-
href="/ai"
96-
class="flex items-center gap-x-2 px-4 py-2 bg-gradient-to-r from-blue-500 to-green-500 text-white rounded-md shadow-md hover:from-blue-600 hover:to-green-600 transition-all ml-4"
97-
style="height: 100%; display: flex; align-items: center; white-space: nowrap; width: 120px; justify-content: center;"
98-
>
99-
<span class="text-sm font-medium">Ask AI</span>
100-
</a>
10193
</div>
10294
</div>
10395
</div>

0 commit comments

Comments
 (0)