Skip to content

Commit

Permalink
fix varie deploy vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
AndPat committed Jan 3, 2025
1 parent e11a4df commit ff809bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
14 changes: 8 additions & 6 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { defineConfig } from "astro/config";
import pagefind from "astro-pagefind";
import vercel from "@astrojs/vercel/serverless";

// https://astro.build/config
export default defineConfig({
site: "https://mango-flower-0edf37903.4.azurestaticapps.net/",
integrations: [
Expand All @@ -21,14 +20,17 @@ export default defineConfig({
icon(),
sitemap(),
react(),
pagefind(),
pagefind({
// Escludi la classe ai.astro (e qualsiasi percorso derivato da essa)
exclude: ["/ai"],
}),
tailwind({
applyBaseStyles: false,
}),
],
// output: "static",
output: "hybrid",
output: "hybrid", // Necessario per supportare la pagina dinamica ai.astro
adapter: vercel({
analytics: true,
analytics: true, // Attiva il tracciamento analitico su Vercel
}),
});
},
);
8 changes: 0 additions & 8 deletions src/components/ui/search.astro
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,6 @@ import SearchComponent from "astro-pagefind/components/Search";
},
}}
/>
<!-- Bottone "Ask AI" -->
<a
href="/ai"
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"
style="height: 100%; display: flex; align-items: center; white-space: nowrap; width: 120px; justify-content: center;"
>
<span class="text-sm font-medium">Ask AI</span>
</a>
</div>
</div>
</div>
Expand Down

0 comments on commit ff809bb

Please sign in to comment.