Skip to content

Commit

Permalink
revert to SSR
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandzors committed Dec 14, 2024
1 parent c397c01 commit 89897a5
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import sitemap from '@astrojs/sitemap';
export default defineConfig({
site: 'https://alexsguardian.net',
compressHTML: true,
output: "static",
output: "server",
adapter: node({
mode: 'standalone',
}),
Expand Down
2 changes: 2 additions & 0 deletions src/pages/404.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
import DefaultLayout from '../layouts/DefaultLayout.astro';
export const prerender = true;
---

<DefaultLayout title="404">
Expand Down
2 changes: 2 additions & 0 deletions src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import PageTitle from '../components/PageTitle.astro';
import CallToAction from '../components/CallToAction.astro';
const pageTitle = "About";
export const prerender = true;
---

<DefaultLayout title={pageTitle}>
Expand Down
3 changes: 1 addition & 2 deletions src/pages/contact.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PageTitle from '../components/PageTitle.astro';
const pageTitle = "Contact";
---
<!-- TODO: Add Contact form and other contact information to this page -->

<DefaultLayout title={pageTitle}>

<PageTitle title={pageTitle} desc="Ready to get in touch?" />
Expand All @@ -14,7 +14,6 @@ const pageTitle = "Contact";
<div>
<!-- // Styling Requires Tailwind CSS -->
<ContactForm server:defer client:load />
<p style="display:none;">moo</p>
</div>
</section>
</DefaultLayout>
2 changes: 2 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import Feature from '../components/Feature.astro';
import Counter from '../components/Counter.astro';
import TestimonialCarousel from '../components/TestimonialCarousel.astro';
import CallToAction from '../components/CallToAction.astro';
export const prerender = true;
---

<DefaultLayout title="Home">
Expand Down
2 changes: 2 additions & 0 deletions src/pages/nfp.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { Icon } from 'astro-icon/components';
const pageTitle = "Not For Profits";
export const prerender = true;
const services = [
{
id: 'it-support',
Expand Down
2 changes: 2 additions & 0 deletions src/pages/privacy.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import PageTitle from '../components/PageTitle.astro';
import DefaultLayout from '../layouts/DefaultLayout.astro';
const pageTitle = "Privacy Policy";
export const prerender = true;
---

<!-- TODO: Add privacy policy to this page -->
Expand Down
2 changes: 2 additions & 0 deletions src/pages/projects.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import CamInstall1 from '../assets/img/camera-install-1.webp';
import NetInstall1 from '../assets/img/network-install-1.webp'
const pageTitle = "Projects";
export const prerender = true;
---

<DefaultLayout title={pageTitle}>
Expand Down
2 changes: 2 additions & 0 deletions src/pages/scams.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import PageTitle from '../components/PageTitle.astro';
import CallToAction from '../components/CallToAction.astro';
const pageTitle = "Scams";
export const prerender = true;
---

<DefaultLayout title="Scams">
Expand Down
2 changes: 2 additions & 0 deletions src/pages/support.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
import DefaultLayout from '../layouts/DefaultLayout.astro';
export const prerender = true;
---

<!-- TODO: Add support options to this page -->
Expand Down

0 comments on commit 89897a5

Please sign in to comment.