Skip to content

Instantly share code, notes, and snippets.

@yasudacloud
Created March 24, 2025 09:54
Show Gist options
  • Save yasudacloud/4272ce6ffdaf64d6856697ab89ccec1d to your computer and use it in GitHub Desktop.
Save yasudacloud/4272ce6ffdaf64d6856697ab89ccec1d to your computer and use it in GitHub Desktop.
strapi origin settings
import type {StrapiApp} from '@strapi/strapi/admin';
import './common.css'
export default {
config: {
locales: [],
},
bootstrap(app: StrapiApp) {
},
register(app: StrapiApp) {
app.createSettingSection({
id: "hello-custom-setting", intlLabel: {id: "test", defaultMessage: "Custom Settings"}
},
[
{
intlLabel: {id: "test", defaultMessage: "Hello Setting"},
id: "test",
to: "/hello/settings",
Component: async () => await import('./components/HelloSetting'),
permissions: [],
},
])
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment