[{"data":1,"prerenderedAt":1767},["ShallowReactive",2],{"navigation_docs":3,"-examples-apps-frigear-nu-website":587,"-examples-apps-frigear-nu-website-surround":1762},[4,50,155,441,504],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":49},"Get Started","i-lucide-rocket","\u002Fget-started","1.get-started",[10,15,20,25,30,35,40,45],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fget-started\u002Fintroduction","1.get-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fget-started\u002Finstallation","1.get-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23,"icon":24},"Project structure","\u002Fget-started\u002Fproject-structure","1.get-started\u002F3.project-structure","i-lucide-folder-tree",{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fget-started\u002Fconfiguration","1.get-started\u002F4.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authentication","\u002Fget-started\u002Fauthentication","1.get-started\u002F5.authentication","i-lucide-lock",{"title":36,"path":37,"stem":38,"icon":39},"Adding modules","\u002Fget-started\u002Fadding-modules","1.get-started\u002F6.adding-modules","i-lucide-puzzle",{"title":41,"path":42,"stem":43,"icon":44},"Database","\u002Fget-started\u002Fdatabase","1.get-started\u002F7.database","i-lucide-database",{"title":46,"path":47,"stem":48,"icon":6},"Deployment","\u002Fget-started\u002Fdeployment","1.get-started\u002F8.deployment",false,{"title":51,"icon":52,"path":53,"stem":54,"children":55,"page":49},"Guide","i-lucide-book-open","\u002Fguide","2.guide",[56,90,115,125],{"title":57,"icon":49,"path":58,"stem":59,"children":60,"page":49},"Concepts","\u002Fguide\u002Fconcepts","2.guide\u002F1.concepts",[61,66,71,76,80,85],{"title":62,"path":63,"stem":64,"icon":65},"Architecture","\u002Fguide\u002Fconcepts\u002Farchitecture","2.guide\u002F1.concepts\u002F1.architecture","i-lucide-blocks",{"title":67,"path":68,"stem":69,"icon":70},"Access control","\u002Fguide\u002Fconcepts\u002Fauth-and-scopes","2.guide\u002F1.concepts\u002F2.auth-and-scopes","i-lucide-shield-check",{"title":72,"path":73,"stem":74,"icon":75},"Extension points","\u002Fguide\u002Fconcepts\u002Fextension-points","2.guide\u002F1.concepts\u002F3.extension-points","i-lucide-plug",{"title":77,"path":78,"stem":79,"icon":44},"Database extensions","\u002Fguide\u002Fconcepts\u002Fdatabase-extensions","2.guide\u002F1.concepts\u002F4.database-extensions",{"title":81,"path":82,"stem":83,"icon":84},"Identity","\u002Fguide\u002Fconcepts\u002Fidentity","2.guide\u002F1.concepts\u002F5.identity","i-lucide-fingerprint",{"title":86,"path":87,"stem":88,"icon":89},"Glossary","\u002Fguide\u002Fconcepts\u002Fglossary","2.guide\u002F1.concepts\u002F6.glossary","i-lucide-book-a",{"title":91,"icon":49,"path":92,"stem":93,"children":94,"page":49},"UX patterns","\u002Fguide\u002Fux-patterns","2.guide\u002F2.ux-patterns",[95,100,105,110],{"title":96,"path":97,"stem":98,"icon":99},"Layouts and navigation","\u002Fguide\u002Fux-patterns\u002Flayouts-and-navigation","2.guide\u002F2.ux-patterns\u002F1.layouts-and-navigation","i-lucide-layout-template",{"title":101,"path":102,"stem":103,"icon":104},"Pages","\u002Fguide\u002Fux-patterns\u002Fpages","2.guide\u002F2.ux-patterns\u002F2.pages","i-lucide-table",{"title":106,"path":107,"stem":108,"icon":109},"Forms and actions","\u002Fguide\u002Fux-patterns\u002Fforms-and-actions","2.guide\u002F2.ux-patterns\u002F3.forms-and-actions","i-lucide-square-pen",{"title":111,"path":112,"stem":113,"icon":114},"Text and formatting","\u002Fguide\u002Fux-patterns\u002Ftext-and-formatting","2.guide\u002F2.ux-patterns\u002F4.text-and-formatting","i-lucide-type",{"title":116,"icon":49,"path":117,"stem":118,"children":119,"page":49},"Best practices","\u002Fguide\u002Fbest-practices","2.guide\u002F3.best-practices",[120],{"title":121,"path":122,"stem":123,"icon":124},"HTTP routes","\u002Fguide\u002Fbest-practices\u002Fhttp-routes","2.guide\u002F3.best-practices\u002F1.http-routes","i-lucide-route",{"title":126,"icon":49,"path":127,"stem":128,"children":129,"page":49},"Going further","\u002Fguide\u002Fgoing-further","2.guide\u002F4.going-further",[130,135,140,145,150],{"title":131,"path":132,"stem":133,"icon":134},"Use your own OAuth server","\u002Fguide\u002Fgoing-further\u002Fown-oauth-server","2.guide\u002F4.going-further\u002F1.own-oauth-server","i-lucide-key-round",{"title":136,"path":137,"stem":138,"icon":139},"Create an OAuth application","\u002Fguide\u002Fgoing-further\u002Foauth-application","2.guide\u002F4.going-further\u002F2.oauth-application","i-lucide-app-window",{"title":141,"path":142,"stem":143,"icon":144},"Signing keys","\u002Fguide\u002Fgoing-further\u002Fsigning-keys","2.guide\u002F4.going-further\u002F3.signing-keys","i-lucide-key-square",{"title":146,"path":147,"stem":148,"icon":149},"Stripe setup","\u002Fguide\u002Fgoing-further\u002Fstripe-setup","2.guide\u002F4.going-further\u002F4.stripe-setup","i-lucide-credit-card",{"title":151,"path":152,"stem":153,"icon":154},"Migrate to the permission model","\u002Fguide\u002Fgoing-further\u002Fmigrate-access-control","2.guide\u002F4.going-further\u002F5.migrate-access-control","i-lucide-arrow-right-left",{"title":156,"icon":157,"path":158,"stem":159,"children":160},"Modules","i-lucide-boxes","\u002Fmodules","3.modules",[161,163,244,273,320,375],{"title":156,"path":158,"stem":162},"3.modules\u002Findex",{"title":81,"icon":49,"path":164,"stem":165,"children":166,"page":49},"\u002Fmodules\u002Fidentity","3.modules\u002F1.identity",[167,190,194,198,220,224,240],{"title":168,"path":169,"stem":170,"children":171},"Auth","\u002Fmodules\u002Fidentity\u002Fauth","3.modules\u002F1.identity\u002F1.auth\u002Findex",[172,174,178,182,186],{"title":173,"path":169,"stem":170},"Overview",{"title":175,"path":176,"stem":177},"Server API","\u002Fmodules\u002Fidentity\u002Fauth\u002Fserver","3.modules\u002F1.identity\u002F1.auth\u002F2.server",{"title":179,"path":180,"stem":181},"Reference","\u002Fmodules\u002Fidentity\u002Fauth\u002Freference","3.modules\u002F1.identity\u002F1.auth\u002F3.reference",{"title":183,"path":184,"stem":185},"Client mode","\u002Fmodules\u002Fidentity\u002Fauth\u002Fclient-mode","3.modules\u002F1.identity\u002F1.auth\u002F4.client-mode",{"title":187,"path":188,"stem":189},"OAuth providers","\u002Fmodules\u002Fidentity\u002Fauth\u002Foauth-providers","3.modules\u002F1.identity\u002F1.auth\u002F5.oauth-providers",{"title":191,"path":192,"stem":193},"Users","\u002Fmodules\u002Fidentity\u002Fusers","3.modules\u002F1.identity\u002F2.users",{"title":195,"path":196,"stem":197},"Account","\u002Fmodules\u002Fidentity\u002Faccount","3.modules\u002F1.identity\u002F3.account",{"title":199,"path":200,"stem":201,"children":202},"Authorization","\u002Fmodules\u002Fidentity\u002Fauthorization","3.modules\u002F1.identity\u002F4.authorization\u002Findex",[203,204,208,212,216],{"title":173,"path":200,"stem":201},{"title":205,"path":206,"stem":207},"Roles and requirements","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Froles-and-requirements","3.modules\u002F1.identity\u002F4.authorization\u002F2.roles-and-requirements",{"title":209,"path":210,"stem":211},"Policies","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fpolicies","3.modules\u002F1.identity\u002F4.authorization\u002F3.policies",{"title":213,"path":214,"stem":215},"Client","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fclient","3.modules\u002F1.identity\u002F4.authorization\u002F4.client",{"title":217,"path":218,"stem":219},"Admin","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fadmin","3.modules\u002F1.identity\u002F4.authorization\u002F5.admin",{"title":221,"path":222,"stem":223},"Preferences","\u002Fmodules\u002Fidentity\u002Fpreferences","3.modules\u002F1.identity\u002F5.preferences",{"title":225,"path":226,"stem":227,"children":228},"OAuth Server","\u002Fmodules\u002Fidentity\u002Foauth-server","3.modules\u002F1.identity\u002F6.oauth-server\u002Findex",[229,230,233,237],{"title":173,"path":226,"stem":227},{"title":175,"path":231,"stem":232},"\u002Fmodules\u002Fidentity\u002Foauth-server\u002Fserver","3.modules\u002F1.identity\u002F6.oauth-server\u002F2.server",{"title":234,"path":235,"stem":236},"Hooks","\u002Fmodules\u002Fidentity\u002Foauth-server\u002Fhooks","3.modules\u002F1.identity\u002F6.oauth-server\u002F3.hooks",{"title":179,"path":238,"stem":239},"\u002Fmodules\u002Fidentity\u002Foauth-server\u002Froutes-and-clients","3.modules\u002F1.identity\u002F6.oauth-server\u002F4.routes-and-clients",{"title":241,"path":242,"stem":243},"OAuth Resource","\u002Fmodules\u002Fidentity\u002Foauth-resource","3.modules\u002F1.identity\u002F8.oauth-resource",{"title":245,"icon":49,"path":246,"stem":247,"children":248,"page":49},"Commerce","\u002Fmodules\u002Fcommerce","3.modules\u002F2.commerce",[249,253,257],{"title":250,"path":251,"stem":252},"Stripe","\u002Fmodules\u002Fcommerce\u002Fstripe","3.modules\u002F2.commerce\u002F1.stripe",{"title":254,"path":255,"stem":256},"Payments","\u002Fmodules\u002Fcommerce\u002Fpayments","3.modules\u002F2.commerce\u002F2.payments",{"title":258,"path":259,"stem":260,"children":261},"Subscriptions","\u002Fmodules\u002Fcommerce\u002Fsubscriptions","3.modules\u002F2.commerce\u002F3.subscriptions\u002Findex",[262,263,266,270],{"title":173,"path":259,"stem":260},{"title":175,"path":264,"stem":265},"\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Fserver","3.modules\u002F2.commerce\u002F3.subscriptions\u002F2.server",{"title":267,"path":268,"stem":269},"App","\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Fapp","3.modules\u002F2.commerce\u002F3.subscriptions\u002F3.app",{"title":179,"path":271,"stem":272},"\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Freference","3.modules\u002F2.commerce\u002F3.subscriptions\u002F4.reference",{"title":274,"icon":49,"path":275,"stem":276,"children":277,"page":49},"Features","\u002Fmodules\u002Ffeatures","3.modules\u002F3.features",[278,293,312,316],{"title":279,"path":280,"stem":281,"children":282},"Events","\u002Fmodules\u002Ffeatures\u002Fevents","3.modules\u002F3.features\u002F1.events\u002Findex",[283,284,287,290],{"title":173,"path":280,"stem":281},{"title":175,"path":285,"stem":286},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Fserver","3.modules\u002F3.features\u002F1.events\u002F2.server",{"title":267,"path":288,"stem":289},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Fapp","3.modules\u002F3.features\u002F1.events\u002F3.app",{"title":179,"path":291,"stem":292},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Freference","3.modules\u002F3.features\u002F1.events\u002F4.reference",{"title":294,"path":295,"stem":296,"children":297},"Forms","\u002Fmodules\u002Ffeatures\u002Fforms","3.modules\u002F3.features\u002F2.forms\u002Findex",[298,299,303,306,309],{"title":173,"path":295,"stem":296},{"title":300,"path":301,"stem":302},"Definition","\u002Fmodules\u002Ffeatures\u002Fforms\u002Fdefinition","3.modules\u002F3.features\u002F2.forms\u002F2.definition",{"title":175,"path":304,"stem":305},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Fserver","3.modules\u002F3.features\u002F2.forms\u002F3.server",{"title":267,"path":307,"stem":308},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Fapp","3.modules\u002F3.features\u002F2.forms\u002F4.app",{"title":179,"path":310,"stem":311},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Freference","3.modules\u002F3.features\u002F2.forms\u002F5.reference",{"title":313,"path":314,"stem":315},"Cookie Consent","\u002Fmodules\u002Ffeatures\u002Fcookie-consent","3.modules\u002F3.features\u002F3.cookie-consent",{"title":317,"path":318,"stem":319},"MCP","\u002Fmodules\u002Ffeatures\u002Fmcp","3.modules\u002F3.features\u002F4.mcp",{"title":321,"icon":49,"path":322,"stem":323,"children":324,"page":49},"Interface","\u002Fmodules\u002Finterface","3.modules\u002F4.interface",[325,350,353,357,361],{"title":326,"path":327,"stem":328,"children":329},"UI","\u002Fmodules\u002Finterface\u002Fui","3.modules\u002F4.interface\u002F1.ui\u002Findex",[330,331,335,339,343,347],{"title":173,"path":327,"stem":328},{"title":332,"path":333,"stem":334},"Page components","\u002Fmodules\u002Finterface\u002Fui\u002Fpage-components","3.modules\u002F4.interface\u002F1.ui\u002F2.page-components",{"title":336,"path":337,"stem":338},"App shell","\u002Fmodules\u002Finterface\u002Fui\u002Fapp-shell","3.modules\u002F4.interface\u002F1.ui\u002F3.app-shell",{"title":340,"path":341,"stem":342},"Form inputs","\u002Fmodules\u002Finterface\u002Fui\u002Fform-inputs","3.modules\u002F4.interface\u002F1.ui\u002F4.form-inputs",{"title":344,"path":345,"stem":346},"Composables and helpers","\u002Fmodules\u002Finterface\u002Fui\u002Fcomposables","3.modules\u002F4.interface\u002F1.ui\u002F5.composables",{"title":179,"path":348,"stem":349},"\u002Fmodules\u002Finterface\u002Fui\u002Freference","3.modules\u002F4.interface\u002F1.ui\u002F6.reference",{"title":217,"path":351,"stem":352},"\u002Fmodules\u002Finterface\u002Fadmin","3.modules\u002F4.interface\u002F2.admin",{"title":354,"path":355,"stem":356},"Menu","\u002Fmodules\u002Finterface\u002Fmenu","3.modules\u002F4.interface\u002F3.menu",{"title":358,"path":359,"stem":360},"Widget","\u002Fmodules\u002Finterface\u002Fwidget","3.modules\u002F4.interface\u002F4.widget",{"title":362,"path":363,"stem":364,"children":365},"Mobile","\u002Fmodules\u002Finterface\u002Fmobile","3.modules\u002F4.interface\u002F5.mobile\u002Findex",[366,367,371],{"title":173,"path":363,"stem":364},{"title":368,"path":369,"stem":370},"CLI and devices","\u002Fmodules\u002Finterface\u002Fmobile\u002Fcli-and-devices","3.modules\u002F4.interface\u002F5.mobile\u002F2.cli-and-devices",{"title":372,"path":373,"stem":374},"Splash screen","\u002Fmodules\u002Finterface\u002Fmobile\u002Fsplash-screen","3.modules\u002F4.interface\u002F5.mobile\u002F3.splash-screen",{"title":376,"icon":49,"path":377,"stem":378,"children":379,"page":49},"Platform","\u002Fmodules\u002Fplatform","3.modules\u002F5.platform",[380,402,406,423],{"title":381,"path":382,"stem":383,"children":384},"Module Kit","\u002Fmodules\u002Fplatform\u002Fmodule-kit","3.modules\u002F5.platform\u002F1.module-kit\u002Findex",[385,386,390,394,398],{"title":173,"path":382,"stem":383},{"title":387,"path":388,"stem":389},"Server toolkit","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fserver-toolkit","3.modules\u002F5.platform\u002F1.module-kit\u002F2.server-toolkit",{"title":391,"path":392,"stem":393},"Registries and menus","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fregistries-and-menus","3.modules\u002F5.platform\u002F1.module-kit\u002F3.registries-and-menus",{"title":395,"path":396,"stem":397},"Translations","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fi18n","3.modules\u002F5.platform\u002F1.module-kit\u002F4.i18n",{"title":399,"path":400,"stem":401},"Database helpers","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fdatabase","3.modules\u002F5.platform\u002F1.module-kit\u002F5.database",{"title":403,"path":404,"stem":405},"Notify","\u002Fmodules\u002Fplatform\u002Fnotify","3.modules\u002F5.platform\u002F2.notify",{"title":407,"path":408,"stem":409,"children":410},"Email Templates","\u002Fmodules\u002Fplatform\u002Femail-templates","3.modules\u002F5.platform\u002F3.email-templates\u002Findex",[411,412,416,419],{"title":173,"path":408,"stem":409},{"title":413,"path":414,"stem":415},"Email components","\u002Fmodules\u002Fplatform\u002Femail-templates\u002Fcomponents","3.modules\u002F5.platform\u002F3.email-templates\u002F2.components",{"title":175,"path":417,"stem":418},"\u002Fmodules\u002Fplatform\u002Femail-templates\u002Fserver","3.modules\u002F5.platform\u002F3.email-templates\u002F3.server",{"title":420,"path":421,"stem":422},"Module emails","\u002Fmodules\u002Fplatform\u002Femail-templates\u002Fmodule-emails","3.modules\u002F5.platform\u002F3.email-templates\u002F4.module-emails",{"title":424,"path":425,"stem":426,"children":427},"Base Layer","\u002Fmodules\u002Fplatform\u002Fbase-layer","3.modules\u002F5.platform\u002F4.base-layer\u002Findex",[428,429,433,437],{"title":173,"path":425,"stem":426},{"title":430,"path":431,"stem":432},"Content collections","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Fcontent-collections","3.modules\u002F5.platform\u002F4.base-layer\u002F2.content-collections",{"title":434,"path":435,"stem":436},"Layouts and routing","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Flayouts-and-routing","3.modules\u002F5.platform\u002F4.base-layer\u002F3.layouts-and-routing",{"title":438,"path":439,"stem":440},"Composables and utils","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Fcomposables-and-utils","3.modules\u002F5.platform\u002F4.base-layer\u002F4.composables-and-utils",{"title":442,"icon":443,"path":444,"stem":445,"children":446,"page":49},"Examples","i-lucide-code-xml","\u002Fexamples","4.examples",[447,466,476],{"title":448,"icon":49,"path":449,"stem":450,"children":451,"page":49},"Starters","\u002Fexamples\u002Fstarters","4.examples\u002F1.starters",[452,456,461],{"title":453,"path":454,"stem":455,"icon":6},"Workspace starter","\u002Fexamples\u002Fstarters\u002Fworkspace","4.examples\u002F1.starters\u002F1.workspace",{"title":457,"path":458,"stem":459,"icon":460},"Mobile starter","\u002Fexamples\u002Fstarters\u002Fmobile","4.examples\u002F1.starters\u002F2.mobile","i-lucide-smartphone",{"title":462,"path":463,"stem":464,"icon":465},"Standalone mobile starter","\u002Fexamples\u002Fstarters\u002Fmobile-standalone","4.examples\u002F1.starters\u002F3.mobile-standalone","i-lucide-tablet-smartphone",{"title":467,"icon":49,"path":468,"stem":469,"children":470,"page":49},"Apps","\u002Fexamples\u002Fapps","4.examples\u002F2.apps",[471],{"title":472,"path":473,"stem":474,"icon":475},"Frigear website app","\u002Fexamples\u002Fapps\u002Ffrigear-nu-website","4.examples\u002F2.apps\u002F1.frigear-nu-website","i-lucide-layout-dashboard",{"title":477,"icon":49,"path":478,"stem":479,"children":480,"page":49},"Tasks","\u002Fexamples\u002Ftasks","4.examples\u002F3.tasks",[481,485,489,494,499],{"title":482,"path":483,"stem":484,"icon":70},"Protect a route","\u002Fexamples\u002Ftasks\u002Fprotect-a-route","4.examples\u002F3.tasks\u002F1.protect-a-route",{"title":486,"path":487,"stem":488,"icon":475},"Add an admin page","\u002Fexamples\u002Ftasks\u002Fadd-an-admin-page","4.examples\u002F3.tasks\u002F2.add-an-admin-page",{"title":490,"path":491,"stem":492,"icon":493},"Sell event tickets","\u002Fexamples\u002Ftasks\u002Fsell-event-tickets","4.examples\u002F3.tasks\u002F3.sell-event-tickets","i-lucide-ticket",{"title":495,"path":496,"stem":497,"icon":498},"Build a form","\u002Fexamples\u002Ftasks\u002Fbuild-a-form","4.examples\u002F3.tasks\u002F4.build-a-form","i-lucide-clipboard-list",{"title":500,"path":501,"stem":502,"icon":503},"Send an email","\u002Fexamples\u002Ftasks\u002Fsend-an-email","4.examples\u002F3.tasks\u002F5.send-an-email","i-lucide-mail",{"title":505,"icon":506,"path":507,"stem":508,"children":509,"page":49},"Contribute","i-lucide-git-pull-request","\u002Fcontribute","5.contribute",[510,513,518,544,549,552,556,571],{"title":173,"path":511,"stem":512,"icon":506},"\u002Fcontribute\u002Foverview","5.contribute\u002F1.overview",{"title":514,"path":515,"stem":516,"icon":517},"Local development","\u002Fcontribute\u002Flocal-development","5.contribute\u002F2.local-development","i-lucide-terminal",{"title":519,"icon":49,"path":520,"stem":521,"children":522,"page":49},"Writing a module","\u002Fcontribute\u002Fwriting-a-module","5.contribute\u002F3.writing-a-module",[523,527,532,536,541],{"title":524,"path":525,"stem":526,"icon":39},"Scaffold a module","\u002Fcontribute\u002Fwriting-a-module\u002Fscaffold","5.contribute\u002F3.writing-a-module\u002F1.scaffold",{"title":528,"path":529,"stem":530,"icon":531},"Setup checklist","\u002Fcontribute\u002Fwriting-a-module\u002Fsetup-checklist","5.contribute\u002F3.writing-a-module\u002F2.setup-checklist","i-lucide-list-checks",{"title":533,"path":534,"stem":535,"icon":44},"Database tables","\u002Fcontribute\u002Fwriting-a-module\u002Fdatabase-tables","5.contribute\u002F3.writing-a-module\u002F3.database-tables",{"title":537,"path":538,"stem":539,"icon":540},"Testing","\u002Fcontribute\u002Fwriting-a-module\u002Ftesting","5.contribute\u002F3.writing-a-module\u002F4.testing","i-lucide-flask-conical",{"title":67,"path":542,"stem":543,"icon":70},"\u002Fcontribute\u002Fwriting-a-module\u002Faccess-control","5.contribute\u002F3.writing-a-module\u002F5.access-control",{"title":545,"path":546,"stem":547,"icon":548},"Publishing","\u002Fcontribute\u002Fpublishing","5.contribute\u002F4.publishing","i-lucide-package-check",{"title":448,"path":550,"stem":551,"icon":6},"\u002Fcontribute\u002Fstarters","5.contribute\u002F5.starters",{"title":553,"path":554,"stem":555,"icon":52},"Documentation","\u002Fcontribute\u002Fdocumentation","5.contribute\u002F6.documentation",{"title":557,"icon":49,"path":558,"stem":559,"children":560,"page":49},"Tooling","\u002Fcontribute\u002Ftooling","5.contribute\u002F7.tooling",[561,566],{"title":562,"path":563,"stem":564,"icon":565},"CLI","\u002Fcontribute\u002Ftooling\u002Fcli","5.contribute\u002F7.tooling\u002F1.cli","i-lucide-square-terminal",{"title":567,"path":568,"stem":569,"icon":570},"ESLint config","\u002Fcontribute\u002Ftooling\u002Feslint-config","5.contribute\u002F7.tooling\u002F2.eslint-config","i-lucide-spell-check",{"title":572,"icon":49,"path":573,"stem":574,"children":575},"Decisions","\u002Fcontribute\u002Fdecisions","5.contribute\u002F8.decisions\u002Findex",[576,578,583],{"title":572,"path":573,"stem":574,"icon":577},"i-lucide-scale",{"title":579,"path":580,"stem":581,"icon":582},"Session lifetimes per OAuth client","\u002Fcontribute\u002Fdecisions\u002Foauth-token-lifetimes","5.contribute\u002F8.decisions\u002F1.oauth-token-lifetimes","i-lucide-timer",{"title":584,"path":585,"stem":586,"icon":70},"One permission model","\u002Fcontribute\u002Fdecisions\u002Fpermission-model","5.contribute\u002F8.decisions\u002F2.permission-model",{"id":588,"title":472,"body":589,"description":1755,"extension":1756,"links":1757,"meta":1758,"navigation":1759,"path":473,"seo":1760,"stem":474,"__hash__":1761},"docs\u002F4.examples\u002F2.apps\u002F1.frigear-nu-website.md",{"type":590,"value":591,"toc":1745},"minimark",[592,601,632,635,687,691,715,946,959,963,970,1035,1046,1056,1060,1071,1326,1329,1335,1420,1423,1469,1592,1649,1652,1665,1668,1675,1725,1729,1741],[593,594,595,596,600],"p",{},"Read this app to see how a complete ",[597,598,599],"a",{"href":87},"host app"," configures the modules, answers their policy\nhooks and deploys.",[593,602,603,604,607,608,611,612,615,616,620,621,624,625,631],{},"The Frigear website app is the code; ",[597,605,606],{"href":87},"frigear.nu"," is the live service it runs, which is also\nthe default ",[597,609,610],{"href":87},"issuer",". The app is a private Nuxt 4 app on the\n",[597,613,614],{"href":425},"base layer"," in ",[617,618,619],"code",{},"apps\u002Fwebsite"," (",[617,622,623],{},"@frigear-nu\u002Fwebsite","), deployed to Cloudflare Workers.\nIt replaces the ",[597,626,630],{"href":627,"rel":628},"https:\u002F\u002Fgithub.com\u002FFrigear-nu\u002Fnuxt-frigear-nu",[629],"nofollow","previous Nuxt website",".",[593,633,634],{},"To run it from the repository root:",[636,637,642],"pre",{"className":638,"code":639,"language":640,"meta":641,"style":641},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm install\ncp apps\u002Fwebsite\u002F.env.example apps\u002Fwebsite\u002F.env   # NUXT_APP_SECRET can stay empty in development\npnpm --filter @frigear-nu\u002Fwebsite dev\n","bash","",[617,643,644,657,673],{"__ignoreMap":641},[645,646,649,653],"span",{"class":647,"line":648},"line",1,[645,650,652],{"class":651},"sBMFI","pnpm",[645,654,656],{"class":655},"sfazB"," install\n",[645,658,660,663,666,669],{"class":647,"line":659},2,[645,661,662],{"class":651},"cp",[645,664,665],{"class":655}," apps\u002Fwebsite\u002F.env.example",[645,667,668],{"class":655}," apps\u002Fwebsite\u002F.env",[645,670,672],{"class":671},"sHwdD","   # NUXT_APP_SECRET can stay empty in development\n",[645,674,676,678,681,684],{"class":647,"line":675},3,[645,677,652],{"class":651},[645,679,680],{"class":655}," --filter",[645,682,683],{"class":655}," @frigear-nu\u002Fwebsite",[645,685,686],{"class":655}," dev\n",[688,689,156],"h2",{"id":690},"modules",[593,692,693,696,697,700,701,704,705,704,708,711,712,631],{},[617,694,695],{},"nuxt.config.ts"," extends ",[617,698,699],{},"@frigear-nu\u002Fbase"," and installs these modules in this order, after Nuxt modules such as\n",[617,702,703],{},"@nuxt\u002Fui",", ",[617,706,707],{},"@nuxthub\u002Fcore",[617,709,710],{},"@nuxt\u002Fcontent"," and ",[617,713,714],{},"@nuxtjs\u002Fi18n",[716,717,718,731],"table",{},[719,720,721],"thead",{},[722,723,724,728],"tr",{},[725,726,727],"th",{},"Module",[725,729,730],{},"What the Frigear website app configures",[732,733,734,744,757,774,786,797,805,824,833,850,859,868,886,895,904,917,929,938],"tbody",{},[722,735,736,741],{},[737,738,739],"td",{},[597,740,326],{"href":327},[737,742,743],{},"Defaults.",[722,745,746,750],{},[737,747,748],{},[597,749,354],{"href":355},[737,751,752,753,756],{},"Defaults. The base layer adds a content ",[617,754,755],{},"main"," menu.",[722,758,759,763],{},[737,760,761],{},[597,762,168],{"href":169},[737,764,765,766,769,770,773],{},"Sign-in at ",[617,767,768],{},"\u002Fsign-in",", sign-up at ",[617,771,772],{},"\u002Fsign-up",", password, WebAuthn, magic link, email verification, Facebook and Sign in with frigear.nu.",[722,775,776,780],{},[737,777,778],{},[597,779,191],{"href":192},[737,781,782,783,631],{},"Staff user management, MCP, email-change verification, profile at ",[617,784,785],{},"\u002Faccount\u002Fprofile",[722,787,788,792],{},[737,789,790],{},[597,791,199],{"href":200},[737,793,794,795,631],{},"Sends visitors on guarded pages to ",[617,796,768],{},[722,798,799,803],{},[737,800,801],{},[597,802,358],{"href":359},[737,804,743],{},[722,806,807,811],{},[737,808,809],{},[597,810,217],{"href":351},[737,812,813,814,704,817,711,820,823],{},"Open to the ",[617,815,816],{},"admin",[617,818,819],{},"manager",[617,821,822],{},"coordinator"," roles.",[722,825,826,830],{},[737,827,828],{},[597,829,195],{"href":196},[737,831,832],{},"Index, profile, security, documents and API token pages, plus a list of documents.",[722,834,835,839],{},[737,836,837],{},[597,838,403],{"href":404},[737,840,841,842,845,846,849],{},"The ",[617,843,844],{},"log"," email driver unless ",[617,847,848],{},"NUXT_NOTIFY_*"," picks a real one.",[722,851,852,856],{},[737,853,854],{},[597,855,407],{"href":408},[737,857,858],{},"Brand name and logo for module emails.",[722,860,861,865],{},[737,862,863],{},[597,864,250],{"href":251},[737,866,867],{},"Keys from the environment.",[722,869,870,874],{},[737,871,872],{},[597,873,258],{"href":259},[737,875,876,704,879,711,882,885],{},[617,877,878],{},"monthly",[617,880,881],{},"quarterly",[617,883,884],{},"yearly"," membership plans, with price lookup keys from the environment.",[722,887,888,892],{},[737,889,890],{},[597,891,254],{"href":255},[737,893,894],{},"MCP.",[722,896,897,901],{},[737,898,899],{},[597,900,279],{"href":280},[737,902,903],{},"All pages, including the admin pages, and MCP.",[722,905,906,910],{},[737,907,908],{},[597,909,294],{"href":295},[737,911,912,913,916],{},"Form and admin pages, MCP and seeded forms (see ",[597,914,294],{"href":915},"#forms",").",[722,918,919,923],{},[737,920,921],{},[597,922,313],{"href":314},[737,924,925,926,631],{},"Policy link ",[617,927,928],{},"\u002Flegal\u002Fgdpr",[722,930,931,935],{},[737,932,933],{},[597,934,225],{"href":226},[737,936,937],{},"Admin and applications pages, MCP.",[722,939,940,944],{},[737,941,942],{},[597,943,221],{"href":222},[737,945,743],{},[593,947,948,949,952,953,955,956,958],{},"In production, sign-up goes to ",[617,950,951],{},"https:\u002F\u002Ffrigear.nu\u002Fsign-up"," instead of the local page. The app also depends on\n",[597,954,381],{"href":382}," directly. ",[597,957,317],{"href":318}," is not listed: other modules install\nit as a dependency.",[688,960,962],{"id":961},"content","Content",[593,964,965,966,969],{},"The base layer reads site content from ",[617,967,968],{},"content\u002F",". The app has two locales, so it keeps one tree per locale:",[716,971,972,982],{},[719,973,974],{},[722,975,976,979],{},[725,977,978],{},"Folder",[725,980,981],{},"Contents",[732,983,984,1012,1025],{},[722,985,986,994],{},[737,987,988,704,991],{},[617,989,990],{},"content\u002Fda",[617,992,993],{},"content\u002Fen",[737,995,996,999,1000,1003,1004,1007,1008,1011],{},[617,997,998],{},"config.yaml"," (name, logo, navigation, footer) and ",[617,1001,1002],{},"pages\u002F**"," Markdown. ",[617,1005,1006],{},"da"," is the default locale, and ",[617,1009,1010],{},"en"," is prefixed.",[722,1013,1014,1019],{},[737,1015,1016],{},[617,1017,1018],{},"content\u002Fevents",[737,1020,1021,1022,631],{},"Event definition YAML files, such as ",[617,1023,1024],{},"2026\u002F01.general-assembly.yml",[722,1026,1027,1032],{},[737,1028,1029],{},[617,1030,1031],{},"content\u002F_templates\u002Fevents",[737,1033,1034],{},"An event template for local development.",[1036,1037,1038,1039,1041,1042,1045],"note",{},"Nothing reads ",[617,1040,1018],{}," or ",[617,1043,1044],{},"content\u002F_templates"," yet. They hold event definitions ported from the old app. The\nEvents module stores events in the database.",[593,1047,1048,1049,1052,1053,1055],{},"The app's own translations are in ",[617,1050,1051],{},"i18n\u002Flocales",". The same files can override module strings, as\n",[597,1054,381],{"href":382}," explains.",[688,1057,1059],{"id":1058},"environment","Environment",[593,1061,1062,1063,1066,1067,1070],{},"Copy ",[617,1064,1065],{},"apps\u002Fwebsite\u002F.env.example"," to ",[617,1068,1069],{},".env",". The last column names what reads each variable.",[716,1072,1073,1086],{},[719,1074,1075],{},[722,1076,1077,1080,1083],{},[725,1078,1079],{},"Variable",[725,1081,1082],{},"Purpose",[725,1084,1085],{},"Read by",[732,1087,1088,1108,1131,1147,1167,1196,1213,1231,1249,1261,1276,1299],{},[722,1089,1090,1095,1105],{},[737,1091,1092],{},[617,1093,1094],{},"NUXT_APP_SECRET",[737,1096,1097,1098,1101,1102,916],{},"Seals the session cookie (Nuxt's ",[617,1099,1100],{},"appSecret","). Empty in development (Nuxt generates one); required in production, at least 32 characters (",[617,1103,1104],{},"openssl rand -base64 32",[737,1106,1107],{},"nuxt-auth-utils (Auth)",[722,1109,1110,1115,1126],{},[737,1111,1112],{},[617,1113,1114],{},"NUXT_SESSION_PASSWORD",[737,1116,1117,1118,1121,1122,1125],{},"Fallback encryption key for form submissions and stored OAuth tokens, when ",[617,1119,1120],{},"NUXT_FORMS_ENCRYPTION_KEY"," \u002F ",[617,1123,1124],{},"NUXT_AUTH_TOKENS_KEY"," are unset.",[737,1127,1128,1130],{},[597,1129,294],{"href":295},", Auth",[722,1132,1133,1138,1144],{},[737,1134,1135],{},[617,1136,1137],{},"NUXT_ACL_ADMINS",[737,1139,1140,1141,1143],{},"Comma-separated emails that always get the ",[617,1142,816],{}," role, once the address is verified. Sets up the first admin.",[737,1145,1146],{},"The app",[722,1148,1149,1160,1163],{},[737,1150,1151,704,1154,704,1157],{},[617,1152,1153],{},"NUXT_STRIPE_SECRET_KEY",[617,1155,1156],{},"NUXT_STRIPE_WEBHOOK_SECRET",[617,1158,1159],{},"NUXT_PUBLIC_STRIPE_PUBLISHABLE_KEY",[737,1161,1162],{},"Stripe credentials.",[737,1164,1165],{},[597,1166,250],{"href":251},[722,1168,1169,1180,1192],{},[737,1170,1171,704,1174,704,1177],{},[617,1172,1173],{},"SUBSCRIPTIONS_MONTHLY_LOOKUP_KEY",[617,1175,1176],{},"SUBSCRIPTIONS_QUARTERLY_LOOKUP_KEY",[617,1178,1179],{},"SUBSCRIPTIONS_YEARLY_LOOKUP_KEY",[737,1181,1182,1183,704,1186,704,1189,631],{},"Stripe price lookup keys for the plans. Defaults: ",[617,1184,1185],{},"membership_month",[617,1187,1188],{},"membership_quarter",[617,1190,1191],{},"membership_annual",[737,1193,1194],{},[597,1195,258],{"href":259},[722,1197,1198,1206,1209],{},[737,1199,1200,704,1203],{},[617,1201,1202],{},"NUXT_OAUTH_SERVER_PRIVATE_KEY",[617,1204,1205],{},"NUXT_OAUTH_SERVER_PREVIOUS_PUBLIC_KEYS",[737,1207,1208],{},"The token signing key, and the retired public keys while rotating.",[737,1210,1211],{},[597,1212,225],{"href":226},[722,1214,1215,1224,1227],{},[737,1216,1217,704,1220,1223],{},[617,1218,1219],{},"NUXT_NOTIFY_EMAIL_DRIVER",[617,1221,1222],{},"NUXT_NOTIFY_EMAIL_FROM"," and the provider keys",[737,1225,1226],{},"Email delivery.",[737,1228,1229],{},[597,1230,403],{"href":404},[722,1232,1233,1244,1247],{},[737,1234,1235,704,1238,704,1241],{},[617,1236,1237],{},"FRIGEAR_SSO_URL",[617,1239,1240],{},"FRIGEAR_SSO_CLIENT_ID",[617,1242,1243],{},"FRIGEAR_SSO_CLIENT_SECRET",[737,1245,1246],{},"Sign in with frigear.nu. On for pull request previews, or when these are set.",[737,1248,168],{},[722,1250,1251,1256,1259],{},[737,1252,1253],{},[617,1254,1255],{},"NUXT_FRIGEAR_FORCE_ID",[737,1257,1258],{},"Use the frigear.nu user id as the local user id.",[737,1260,168],{},[722,1262,1263,1271,1274],{},[737,1264,1265,704,1268],{},[617,1266,1267],{},"NUXT_OAUTH_FACEBOOK_CLIENT_ID",[617,1269,1270],{},"NUXT_OAUTH_FACEBOOK_CLIENT_SECRET",[737,1272,1273],{},"Facebook sign-in, offered only when these are set.",[737,1275,168],{},[722,1277,1278,1292,1297],{},[737,1279,1280,704,1283,704,1286,704,1289],{},[617,1281,1282],{},"NUXT_FORMS_SEED_ENABLED",[617,1284,1285],{},"NUXT_FORMS_APPLICATIONS_TO",[617,1287,1288],{},"NUXT_MAIL_TO",[617,1290,1291],{},"NUXT_CONTACT_\u003CSUBJECT>",[737,1293,1294,1295,916],{},"Forms seeding and recipients (see ",[597,1296,294],{"href":915},[737,1298,1146],{},[722,1300,1301,1318,1324],{},[737,1302,1303,704,1306,704,1309,704,1312,704,1315],{},[617,1304,1305],{},"DEPLOYMENT_HOST",[617,1307,1308],{},"CLOUDFLARE_WORKER_NAME",[617,1310,1311],{},"NUXT_HUB_CLOUDFLARE_DATABASE_ID",[617,1313,1314],{},"NUXT_HUB_CLOUDFLARE_KV_NAMESPACE_ID",[617,1316,1317],{},"NUXT_HUB_CLOUDFLARE_BUCKET_NAME",[737,1319,1320,1321,916],{},"Cloudflare deployment (see ",[597,1322,46],{"href":1323},"#deployment",[737,1325,1146],{},[688,1327,294],{"id":1328},"forms",[593,1330,1331,1332,1334],{},"The app seeds and guards the ",[597,1333,294],{"href":295}," module in its own code, not in the module.",[1336,1337,1338,1372,1390],"ul",{},[1339,1340,1341,1345,1346,711,1349,1352,1353,1356,1357,711,1360,1363,1364,1367,1368,1371],"li",{},[1342,1343,1344],"strong",{},"Seeded forms."," ",[617,1347,1348],{},"forms\u002Findex.ts",[617,1350,1351],{},"forms\u002Fcontact.ts"," define three forms. ",[617,1354,1355],{},"contact"," is published and has a\nsubject select. ",[617,1358,1359],{},"project-application",[617,1361,1362],{},"board-member-application"," are drafts. They are inserted only when\n",[617,1365,1366],{},"NUXT_FORMS_SEED_ENABLED=true"," turns on ",[617,1369,1370],{},"forms.seed.enabled",", and never overwrite an existing slug.",[1339,1373,1374,1345,1377,1379,1380,1382,1383,1385,1386,1389],{},[1342,1375,1376],{},"Recipients.",[617,1378,1285],{}," (comma-separated) receives both application forms. The contact form\nsends to ",[617,1381,1288],{},", and ",[617,1384,1291],{},", such as ",[617,1387,1388],{},"NUXT_CONTACT_SUPPORT",", routes one subject to its own\naddress. Without a recipient, submissions are only stored.",[1339,1391,1392,1395,1396,1398,1399,704,1402,1405,1406,620,1409,615,1412,1414,1415,1417,1418,631],{},[1342,1393,1394],{},"Who manages forms."," The ",[617,1397,822],{}," role and every role above it hold ",[617,1400,1401],{},"forms:manage",[617,1403,1404],{},"forms:credentials"," and\n",[617,1407,1408],{},"forms:pii",[617,1410,1411],{},"authorization.roles",[617,1413,695],{},"). ",[617,1416,1408],{}," gates submission answers in MCP tools only: the\nadmin pages show submissions with ",[617,1419,1401],{},[688,1421,67],{"id":1422},"access-control",[593,1424,1425,1427,1428,1430,1431,1433,1434,1433,1436,1433,1438,1433,1441,1433,1444,1433,1447,1433,1450,1453,1454,1405,1457,1460,1461,1463,1464,620,1466,916],{},[617,1426,695],{}," defines the roles in ",[617,1429,1411],{},". They form a chain, each role inheriting the one below:\n",[617,1432,816],{}," > ",[617,1435,819],{},[617,1437,822],{},[617,1439,1440],{},"eventmanager",[617,1442,1443],{},"barmanager",[617,1445,1446],{},"crew",[617,1448,1449],{},"member",[617,1451,1452],{},"user",". ",[617,1455,1456],{},"supplier",[617,1458,1459],{},"partner"," only inherit ",[617,1462,1452],{},". Every signed-in user holds ",[617,1465,1452],{},[617,1467,1468],{},"defaultRoles",[716,1470,1471,1481],{},[719,1472,1473],{},[722,1474,1475,1478],{},[725,1476,1477],{},"Role",[725,1479,1480],{},"Adds",[732,1482,1483,1502,1519,1546,1575],{},[722,1484,1485,1489],{},[737,1486,1487],{},[617,1488,1446],{},[737,1490,1491,1494,1495,1498,1499,916],{},[617,1492,1493],{},"documents:crew",": the crew documents on ",[617,1496,1497],{},"\u002Faccount\u002Fdocuments"," (a permission the app registers in ",[617,1500,1501],{},"authentication.permissions",[722,1503,1504,1508],{},[737,1505,1506],{},[617,1507,1440],{},[737,1509,1510,704,1513,704,1516,631],{},[617,1511,1512],{},"events:manage",[617,1514,1515],{},"events:refund",[617,1517,1518],{},"events:pii",[722,1520,1521,1525],{},[737,1522,1523],{},[617,1524,822],{},[737,1526,1527,1530,1531,704,1534,704,1537,704,1539,704,1541,704,1543,631],{},[617,1528,1529],{},"admin:access"," (the admin area), ",[617,1532,1533],{},"users:read",[617,1535,1536],{},"users:list",[617,1538,1401],{},[617,1540,1404],{},[617,1542,1408],{},[617,1544,1545],{},"payments:manage",[722,1547,1548,1552],{},[737,1549,1550],{},[617,1551,819],{},[737,1553,1554,704,1557,704,1560,704,1563,704,1566,704,1569,704,1572,631],{},[617,1555,1556],{},"users:create",[617,1558,1559],{},"users:update",[617,1561,1562],{},"users:delete",[617,1564,1565],{},"users:manage",[617,1567,1568],{},"subscriptions:manage",[617,1570,1571],{},"roles:read",[617,1573,1574],{},"roles:assign",[722,1576,1577,1581],{},[737,1578,1579],{},[617,1580,816],{},[737,1582,1583,1586,1587,711,1589,1591],{},[617,1584,1585],{},"*",", plus the sensitive ",[617,1588,1518],{},[617,1590,1408],{}," by name, so it holds every permission.",[1336,1593,1594,1617,1629],{},[1339,1595,1596,1345,1599,1602,1603,1605,1606,1608,1609,1612,1613,1616],{},[1342,1597,1598],{},"The first admin.",[617,1600,1601],{},"server\u002Fplugins\u002Fauthorization-roles.ts"," adds ",[617,1604,816],{}," to verified emails in ",[617,1607,1137],{},", in\nthe ",[617,1610,1611],{},"authorization:roles"," hook (",[617,1614,1615],{},"shared\u002Facl.ts","). Nothing is stored. Admins assign every other role on the user's\npage in the admin. A role can only be assigned by someone whose roles are strictly above it, so a manager assigns\ncoordinator and below, and only admins assign manager or admin.",[1339,1618,1619,1345,1622,1625,1626,1628],{},[1342,1620,1621],{},"Admin addresses.",[617,1623,1624],{},"server\u002Fpolicies.ts"," lets only admins create a user with, or change an address to, an email in\n",[617,1627,1137],{},", since the account would become an admin once it is verified.",[1339,1630,1631,1345,1634,1602,1637,1640,1641,1644,1645,1648],{},[1342,1632,1633],{},"Single sign-on claims.",[617,1635,1636],{},"server\u002Fplugins\u002Foauth-policy.ts",[617,1638,1639],{},"roles"," (the effective roles) and ",[617,1642,1643],{},"role"," (the most\nsenior one) to ID tokens and userinfo with the ",[617,1646,1647],{},"profile"," scope, so an admin here is an admin in the other Frigear\napps.",[688,1650,41],{"id":1651},"database",[593,1653,1654,1655,1657,1658,1453,1661,1664],{},"Production uses Cloudflare D1. ",[617,1656,695],{}," adds a KV namespace, for Stripe webhook idempotency and the\nsubscription plans cache, and an R2 bucket for form file uploads. Development uses a local SQLite file. Migrations live\nin ",[617,1659,1660],{},"apps\u002Fwebsite\u002Fserver\u002Fdb\u002Fmigrations\u002Fsqlite",[597,1662,514],{"href":1663},"\u002Fcontribute\u002Flocal-development#database"," has the\ncommands.",[688,1666,46],{"id":1667},"deployment",[593,1669,1670,1671,1674],{},"The app builds with the ",[617,1672,1673],{},"cloudflare_module"," Nitro preset and runs on Cloudflare Workers.",[1336,1676,1677,1690,1707],{},[1339,1678,1679,1682,1683,1685,1686,1689],{},[1342,1680,1681],{},"Production."," Pushing to ",[617,1684,755],{}," runs ",[617,1687,1688],{},".github\u002Fworkflows\u002Fdeploy-production.yml",". It deploys and applies the D1\nmigrations.",[1339,1691,1692,1695,1696,1699,1700,1703,1704,631],{},[1342,1693,1694],{},"Previews."," Pull requests from collaborators run ",[617,1697,1698],{},"deploy-preview.yml",". Each gets its own D1 database and a Worker\nPreview (",[617,1701,1702],{},"pr-\u003Cn>","), both deleted when the pull request closes. Both workflows call the reusable ",[617,1705,1706],{},"deploy-website.yml",[1339,1708,1709,1712,1713,1716,1717,1720,1721,1724],{},[1342,1710,1711],{},"Locally."," The root ",[617,1714,1715],{},"cloudflare:*"," scripts and ",[617,1718,1719],{},"apps\u002Fwebsite\u002Fscripts\u002Fdeploy.sh"," run the same steps against an\nexisting ",[617,1722,1723],{},".output"," build.",[688,1726,1728],{"id":1727},"next-steps","Next steps",[1336,1730,1731,1736],{},[1339,1732,1733,1735],{},[597,1734,514],{"href":515}," – run the app and its database on your machine.",[1339,1737,1738,1740],{},[597,1739,46],{"href":47}," – deploy your own app the same way.",[1742,1743,1744],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":641,"searchDepth":659,"depth":659,"links":1746},[1747,1748,1749,1750,1751,1752,1753,1754],{"id":690,"depth":659,"text":156},{"id":961,"depth":659,"text":962},{"id":1058,"depth":659,"text":1059},{"id":1328,"depth":659,"text":294},{"id":1422,"depth":659,"text":67},{"id":1651,"depth":659,"text":41},{"id":1667,"depth":659,"text":46},{"id":1727,"depth":659,"text":1728},"The reference host app behind frigear.nu, with its modules, content, environment, database and deployment.","md",null,{},{"icon":475},{"title":472,"description":1755},"0U9TSYfeMpfsiW_j7-aU5xjliAYv-27Y3HuLqLpX9mg",[1763,1765],{"title":462,"path":463,"stem":464,"description":1764,"icon":465,"children":-1},"Start a mobile app with its own backend - a Nuxt 4 web app that is the OAuth server and API, and a Capacitor app that signs in at it - from the standalone mobile starter.",{"title":482,"path":483,"stem":484,"description":1766,"icon":70,"children":-1},"Declare a permission with defineAccess, check it on a server route with authorize, keep money and credential actions to cookie sessions, and guard pages with route rules.",1794503151756]