Skip to content

Commit

Permalink
adding cloudflare adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
tommerty committed Dec 6, 2023
1 parent c282457 commit b1bd114
Show file tree
Hide file tree
Showing 3 changed files with 308 additions and 37 deletions.
68 changes: 31 additions & 37 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,56 +1,50 @@
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import react from "@astrojs/react";

import tailwind from "@astrojs/tailwind";

import cloudflare from "@astrojs/cloudflare";

// https://astro.build/config
export default defineConfig({
site: 'https://docs.doras.to',
integrations: [starlight({
title: 'Doras.to',
logo: {
light:
'./src/assets/favicon.svg',
dark: './src/assets/favicon-white.svg',
light: './src/assets/favicon.svg',
dark: './src/assets/favicon-white.svg'
},
customCss: [
'./src/styles/custom.css',
],
customCss: ['./src/styles/custom.css'],
editLink: {
baseUrl: 'https://github.com/doras-to/docs/edit/master/',
baseUrl: 'https://github.com/doras-to/docs/edit/master/'
},
social: {
github: 'https://github.com/doras-to/docs'
},
sidebar: [
{
label: 'Guides',
items: [
// Each item here is one entry in the navigation menu.
{
label: 'Getting Started',
link: '/guides/getting-started/'
},
{
label: 'Migrating from Mystlink',
link: '/mystlink/waitlist/'
}]
},
{
label: 'Core Features',
items: [
{
label: 'Understanding Links',
link: '/links'
},
]
},
{
label: 'Contributing',
autogenerate: {
directory: 'contributing',
}
sidebar: [{
label: 'Guides',
items: [
// Each item here is one entry in the navigation menu.
{
label: 'Getting Started',
link: '/guides/getting-started/'
}, {
label: 'Migrating from Mystlink',
link: '/mystlink/waitlist/'
}]
}, {
label: 'Core Features',
items: [{
label: 'Understanding Links',
link: '/links'
}]
}), react(), tailwind()]
}, {
label: 'Contributing',
autogenerate: {
directory: 'contributing'
}
}]
}), react(), tailwind()],
output: "server",
adapter: cloudflare()
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"dependencies": {
"@astrojs/check": "^0.3.1",
"@astrojs/cloudflare": "^8.0.0",
"@astrojs/react": "^3.0.7",
"@astrojs/starlight": "^0.14.0",
"@astrojs/tailwind": "^5.0.3",
Expand Down
Loading

0 comments on commit b1bd114

Please sign in to comment.