mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-06 21:07:47 +00:00
Successfully tested with: - [CRA](https://front-git-analytics-for-all-frameworks.vercel.sh/now-examples/create-react-app/analytics?device=desktop&timePeriod=1d&percentile=75&timeInterval=3h&sort=datapoints&search=) - [SvelteKit](https://front-git-analytics-for-all-frameworks.vercel.sh/now-examples/sveltekit/analytics?device=desktop&timePeriod=1d&percentile=75&timeInterval=3h&sort=datapoints&search=) Dependencies have also been updated 👍
22 lines
478 B
JavaScript
22 lines
478 B
JavaScript
import adapter from '@sveltejs/adapter-auto';
|
|
import preprocess from 'svelte-preprocess';
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
preprocess: preprocess({
|
|
replace: [
|
|
['import.meta.env.VERCEL_ANALYTICS_ID', JSON.stringify(process.env.VERCEL_ANALYTICS_ID)]
|
|
]
|
|
}),
|
|
kit: {
|
|
adapter: adapter(),
|
|
|
|
// Override http methods in the Todo forms
|
|
methodOverride: {
|
|
allowed: ['PATCH', 'DELETE']
|
|
}
|
|
}
|
|
};
|
|
|
|
export default config;
|