Skip to content

Commit

Permalink
feat: add form submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-bloom committed Oct 20, 2024
1 parent ef69a6b commit 9762f34
Show file tree
Hide file tree
Showing 15 changed files with 537 additions and 28 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,6 @@ on:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js v22
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run build
# - run: npm test

check:
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ pnpm-debug.log*

pnpm-lock.yaml

.astro
.astro
.wrangler
9 changes: 5 additions & 4 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ import { lazyImagesRehypePlugin, readingTimeRemarkPlugin, responsiveTablesRehype

import cloudflare from '@astrojs/cloudflare';

import preact from '@astrojs/preact';

const __dirname = path.dirname(fileURLToPath(import.meta.url));

const hasExternalScripts = false;
const whenExternalScripts = (items: (() => AstroIntegration) | (() => AstroIntegration)[] = []) =>
hasExternalScripts ? (Array.isArray(items) ? items.map((item) => item()) : [items()]) : [];

export default defineConfig({
output: 'server',
output: 'hybrid',

integrations: [
tailwind({
Expand All @@ -37,13 +39,11 @@ export default defineConfig({
tabler: ['*'],
},
}),

...whenExternalScripts(() =>
partytown({
config: { forward: ['dataLayer.push'] },
})
),

compress({
CSS: true,
HTML: {
Expand All @@ -56,10 +56,10 @@ export default defineConfig({
SVG: false,
Logger: 1,
}),

astrowind({
config: './src/config.yaml',
}),
preact(),
],

image: {
Expand All @@ -83,5 +83,6 @@ export default defineConfig({
platformProxy: {
enabled: true,
},
imageService: 'passthrough',
}),
});
Loading

0 comments on commit 9762f34

Please sign in to comment.