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 d381c5e commit 1d8a683
Show file tree
Hide file tree
Showing 32 changed files with 70 additions and 12,476 deletions.
18 changes: 5 additions & 13 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from 'astro/config';
import mdx from "@astrojs/mdx";
import compress from "astro-compress";
import tailwind from "@astrojs/tailwind";
import cloudflare from "@astrojs/cloudflare";
import netlify from '@astrojs/netlify';

// https://astro.build/config
export default defineConfig({
Expand Down Expand Up @@ -40,22 +40,14 @@ export default defineConfig({
redirects: {
},
prefetch: {
prefetchAll: true,
prefetchAll: false,
defaultStrategy: 'viewport'
},
experimental: {
clientPrerender: true
clientPrerender: false
},
output: "hybrid",
adapter: cloudflare({
mode: 'directory',
functionPerRoute: true,
routes: {
strategy: 'include',
include: [
'/en/blog/*',
'/ru/blog/*'
]
}
adapter: netlify({
edgeMiddleware: true,
})
});
152 changes: 0 additions & 152 deletions functions/_image.js

This file was deleted.

1,133 changes: 0 additions & 1,133 deletions functions/blog.js

This file was deleted.

1,133 changes: 0 additions & 1,133 deletions functions/en.js

This file was deleted.

152 changes: 0 additions & 152 deletions functions/en/404.js

This file was deleted.

183 changes: 0 additions & 183 deletions functions/en/about.js

This file was deleted.

1,133 changes: 0 additions & 1,133 deletions functions/en/blog.js

This file was deleted.

1,077 changes: 0 additions & 1,077 deletions functions/en/blog/[[slug]].js

This file was deleted.

1,133 changes: 0 additions & 1,133 deletions functions/en/portfolio.js

This file was deleted.

1,133 changes: 0 additions & 1,133 deletions functions/index.js

This file was deleted.

1,133 changes: 0 additions & 1,133 deletions functions/ru.js

This file was deleted.

152 changes: 0 additions & 152 deletions functions/ru/404.js

This file was deleted.

183 changes: 0 additions & 183 deletions functions/ru/about.js

This file was deleted.

1,133 changes: 0 additions & 1,133 deletions functions/ru/blog.js

This file was deleted.

1,077 changes: 0 additions & 1,077 deletions functions/ru/blog/[[slug]].js

This file was deleted.

1,133 changes: 0 additions & 1,133 deletions functions/ru/portfolio.js

This file was deleted.

Loading

0 comments on commit 1d8a683

Please sign in to comment.