string/The base URL the site will be deployed at. You can set this to a subdirectory if you plan to deploy your site to a subdirectory of your domain.
For example, if you plan to deploy your site to https://foo.github.io/bar/, then you should set base to "/bar/":
import { defineConfig } from 'islandjs';
export default defineConfig({
base: '/bar/'
});
string"Island"The title of site. This will be used as the title of the home page and the title of the HTML document. For example:
import { defineConfig } from 'islandjs';
export default defineConfig({
title: 'my-site'
});
string""The description of site. This will be used as the description of the home page and the description of the HTML document. For example:
import { defineConfig } from 'islandjs';
export default defineConfig({
description: 'This is my site.'
});
string""The icon of the site. This will be used as the icon of the home page and the icon of the HTML document. For example:
import { defineConfig } from 'islandjs';
export default defineConfig({
icon: '/icon.png'
});
Then Island.js will find your icon in the public directory.
booleantrueWhether to appear the dark mode/light mode toggle button. For example:
import { defineConfig } from 'islandjs';
export default defineConfig({
appearance: false
});
string.island/distThe output directory for the built site. For example:
import { defineConfig } from 'islandjs';
export default defineConfig({
outDir: 'dist'
});