-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplasmic-init.ts
30 lines (25 loc) · 1.13 KB
/
plasmic-init.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { initPlasmicLoader } from "@plasmicapp/loader-nextjs";
export const PLASMIC = initPlasmicLoader({
projects: [
{
id: "v8ZL9gS8QXkoyAZPWzVHE8", // ID of a project you are using
token: "8Q3nttJhCSVmmPCYyuO2tBwH7EyDzARuRvRICHJU04ZYcWOT8fHdNfnRsV5Vxe084w2d643Hx7Kro13lNFg" // API token for that project
},
],
// By default Plasmic will use the last published version of your project.
// For development, you can set preview to true, which will use the unpublished
// project, allowing you to see your designs without publishing. Please
// only use this for development, as this is significantly slower.
preview: false,
});
// You can register any code components that you want to use here; see
// https://docs.plasmic.app/learn/code-components-ref/
// And configure your Plasmic project to use the host url pointing at
// the /plasmic-host page of your nextjs app (for example,
// http://localhost:3000/plasmic-host). See
// https://docs.plasmic.app/learn/app-hosting/#set-a-plasmic-project-to-use-your-app-host
// PLASMIC.registerComponent(...);
PLASMIC.registerTrait('age', {
type: 'number',
label: 'Age'
});