svelte-adapter-nekoweb

An adapter for Svelte that builds your Svelte(Kit) app using @sveltejs/adapter-static and deploys it automatically on Nekoweb.

Note that this is a community project and is not affiliated with Nekoweb.

Configuration

To use the adapter, install it:

// npm
npm i -D svelte-adapter-nekoweb
// bun
bun i -D svelte-adapter-nekoweb

then add it on your svelte.config.js:

+ import adapter from 'svelte-adapter-nekoweb';

export default {
    kit: {
        adapter: adapter({
            apiKey: 'api key here (required)',
            cookie: 'nekoweb cookie here (optional, but recommended)',
            folder: 'serve folder (default is "build")',
            // Default adapter-static options are below
            pages: 'build',
            assets: 'build',
            fallback: undefined,
            precompress: false,
            strict: true
        })
    }
};

then create your API key on https://nekoweb.org/api (Be careful! Don't share this to others as this API can modify your site!) then put the API key on apiKey.

if you want your page to go to the recently updated page, get your nekoweb cookie from the devtools and put it on cookie! see https://deploy.nekoweb.org/#getting-your-cookie for instructions of how (thanks @thnlqd for helping me implement this!)

and lastly, run npm run build or bun run build (or anything that can run vite build).

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes