Update Astro configuration to switch from Netlify to Node adapter and update dependencies
- Replace Netlify adapter with Node adapter in astro.config.ts for standalone mode. - Update package.json to reflect the new dependency on @astrojs/node. - Modify package-lock.json to include updated versions of dependencies and remove Netlify-specific configurations from the contact form.
This commit is contained in:
@@ -8,7 +8,7 @@ import tailwind from '@astrojs/tailwind';
|
|||||||
import mdx from '@astrojs/mdx';
|
import mdx from '@astrojs/mdx';
|
||||||
import react from '@astrojs/react';
|
import react from '@astrojs/react';
|
||||||
import partytown from '@astrojs/partytown';
|
import partytown from '@astrojs/partytown';
|
||||||
import netlify from '@astrojs/netlify';
|
import node from '@astrojs/node';
|
||||||
import icon from 'astro-icon';
|
import icon from 'astro-icon';
|
||||||
import compress from 'astro-compress';
|
import compress from 'astro-compress';
|
||||||
import type { AstroIntegration } from 'astro';
|
import type { AstroIntegration } from 'astro';
|
||||||
@@ -24,7 +24,7 @@ const whenExternalScripts = (items: (() => AstroIntegration) | (() => AstroInteg
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
output: 'server',
|
output: 'server',
|
||||||
adapter: netlify(),
|
adapter: node({ mode: 'standalone' }),
|
||||||
|
|
||||||
|
|
||||||
i18n: {
|
i18n: {
|
||||||
|
2334
package-lock.json
generated
2334
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -22,7 +22,7 @@
|
|||||||
"fix:prettier": "prettier -w ."
|
"fix:prettier": "prettier -w ."
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/netlify": "^6.1.0",
|
"@astrojs/node": "^9.2.2",
|
||||||
"@astrojs/react": "^4.2.0",
|
"@astrojs/react": "^4.2.0",
|
||||||
"@astrojs/rss": "^4.0.11",
|
"@astrojs/rss": "^4.0.11",
|
||||||
"@astrojs/sitemap": "^3.2.1",
|
"@astrojs/sitemap": "^3.2.1",
|
||||||
|
@@ -20,8 +20,6 @@ const { inputs, textarea, disclaimer, button = 'Contact us', description = '' }
|
|||||||
name="contact"
|
name="contact"
|
||||||
method="POST"
|
method="POST"
|
||||||
class="needs-validation"
|
class="needs-validation"
|
||||||
data-netlify="true"
|
|
||||||
data-netlify-honeypot="bot-field"
|
|
||||||
novalidate
|
novalidate
|
||||||
>
|
>
|
||||||
<!-- Form status messages -->
|
<!-- Form status messages -->
|
||||||
@@ -33,9 +31,6 @@ const { inputs, textarea, disclaimer, button = 'Contact us', description = '' }
|
|||||||
There was an error sending your message. Please check all fields and try again.
|
There was an error sending your message. Please check all fields and try again.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Netlify form name -->
|
|
||||||
<input type="hidden" name="form-name" value="contact" />
|
|
||||||
|
|
||||||
<!-- CSRF token field (will be filled by JS) -->
|
<!-- CSRF token field (will be filled by JS) -->
|
||||||
<input type="hidden" name="csrf_token" id="csrf_token" value="" />
|
<input type="hidden" name="csrf_token" id="csrf_token" value="" />
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user