Skip to content

Commit

Permalink
Project adapter build settings does not consider nested paths #7
Browse files Browse the repository at this point in the history
  • Loading branch information
vratskyi committed Mar 1, 2024
1 parent 0ebb15a commit d381c5e
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default defineConfig({
defaultStrategy: 'viewport'
},
experimental: {
clientPrerender: false
clientPrerender: true
},
output: "hybrid",
adapter: cloudflare({
Expand Down
2 changes: 1 addition & 1 deletion src/pages/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import blur from "@/assets/img/bg.png";
import { getAbsoluteLocaleUrl } from "astro:i18n";
getAbsoluteLocaleUrl("en");
export const prerender = false;
export const prerender = true;
import { Buffer } from 'node:buffer';
const allPosts = await getCollection("posts");
Expand Down
2 changes: 1 addition & 1 deletion src/pages/en/404.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Head from "@components/Head.astro";
import { getAbsoluteLocaleUrl } from "astro:i18n";
getAbsoluteLocaleUrl("en");
export const prerender = false;
export const prerender = true;
import { Buffer } from 'node:buffer';
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/en/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import blur from "/src/assets/img/bg.png";
import { getAbsoluteLocaleUrl } from "astro:i18n";
getAbsoluteLocaleUrl("en");
export const prerender = false;
export const prerender = true;
import { Buffer } from 'node:buffer';
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/en/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getLangFromUrl, useTranslations } from '@/i18n/utils';
const lang = getLangFromUrl(Astro.url);
const t = useTranslations(lang);
export const prerender = false;
export const prerender = true;
import { Buffer } from 'node:buffer';
getAbsoluteLocaleUrl("en");
Expand Down
2 changes: 1 addition & 1 deletion src/pages/en/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { getAbsoluteLocaleUrl } from "astro:i18n";
getAbsoluteLocaleUrl("en");
export const prerender = false;
export const prerender = true;
import { Buffer } from 'node:buffer';
const allPosts = await getCollection("posts");
Expand Down
2 changes: 1 addition & 1 deletion src/pages/en/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Button from "@/components/Button.astro";
import { getRelativeLocaleUrl, getAbsoluteLocaleUrl } from 'astro:i18n';
getAbsoluteLocaleUrl("en");
export const prerender = false;
export const prerender = true;
import { Buffer } from 'node:buffer';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/en/portfolio.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import PortfolioCard from "@/components/PortfolioCard.astro";
import { getAbsoluteLocaleUrl } from "astro:i18n";
getAbsoluteLocaleUrl("en");
export const prerender = false;
export const prerender = true;
import { Buffer } from 'node:buffer';
let title = Astro.props;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Button from "@/components/Button.astro";
import { getRelativeLocaleUrl, getAbsoluteLocaleUrl } from 'astro:i18n';
getAbsoluteLocaleUrl("en");
export const prerender = false;
export const prerender = true;
import { Buffer } from 'node:buffer';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ru/404.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Head from "@components/Head.astro";
import { getAbsoluteLocaleUrl } from "astro:i18n";
getAbsoluteLocaleUrl("ru");
export const prerender = false;
export const prerender = true;
import { Buffer } from 'node:buffer';
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ru/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import blur from "/src/assets/img/bg.png";
import { getAbsoluteLocaleUrl } from "astro:i18n";
getAbsoluteLocaleUrl("ru");
export const prerender = false;
export const prerender = true;
import { Buffer } from 'node:buffer';
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ru/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getLangFromUrl, useTranslations } from '@/i18n/utils';
const lang = getLangFromUrl(Astro.url);
const t = useTranslations(lang);
export const prerender = false;
export const prerender = true;
import { Buffer } from 'node:buffer';
getAbsoluteLocaleUrl("ru");
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ru/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import blur from "@/assets/img/bg.png";
import { getAbsoluteLocaleUrl } from "astro:i18n";
getAbsoluteLocaleUrl("ru");
export const prerender = false;
export const prerender = true;
import { Buffer } from 'node:buffer';
const allPosts = await getCollection("posts");
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ru/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Button from "@/components/Button.astro";
import { getRelativeLocaleUrl, getAbsoluteLocaleUrl } from 'astro:i18n';
getAbsoluteLocaleUrl("ru");
export const prerender = false;
export const prerender = true;
import { Buffer } from 'node:buffer';
const blogURL=getRelativeLocaleUrl("ru", "blog");
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ru/portfolio.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import PortfolioCard from "@/components/PortfolioCard.astro";
import { getAbsoluteLocaleUrl } from "astro:i18n";
getAbsoluteLocaleUrl("ru");
export const prerender = false;
export const prerender = true;
import { Buffer } from 'node:buffer';
let title = Astro.props;
Expand Down

0 comments on commit d381c5e

Please sign in to comment.