Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check if I wanna use it: #137

Open
github-actions bot opened this issue Nov 7, 2023 · 0 comments
Open

check if I wanna use it: #137

github-actions bot opened this issue Nov 7, 2023 · 0 comments
Labels

Comments

@github-actions
Copy link

github-actions bot commented Nov 7, 2023

check if I wanna use it:

// TODO check if I wanna use it:

import adapter from '@sveltejs/adapter-static'
import { vitePreprocess } from '@sveltejs/kit/vite'

/** @type {import('@sveltejs/kit').Config} */
const config = {
  // Consult https://kit.svelte.dev/docs/integrations#preprocessors
  // for more information about preprocessors
  // TODO check if I wanna use it:
  preprocess: [vitePreprocess({ postcss: true })],
  kit: {
    adapter: adapter(),
    prerender: {
      handleHttpError: ({ path, status, message }) => {
        console.log(status, path, message)
        if (status === 404) {
          return
        }

        // otherwise fail the build
        throw new Error(message)
      }
    }
  }
}

export default config

2c7180ebd32e0e2cda83f79152afa961e0da5b28

@github-actions github-actions bot added the todo label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants