Add recipe for nytodev/inertia-bundle 2.0 (#1968)

* Add recipe for nytodev/inertia-bundle 2.0

* re-trigger CI

---------

Co-authored-by: tony-poisson <tony@poisson-soluble.com>
This commit is contained in:
Tony BLARD
2026-04-09 00:08:08 +04:00
committed by GitHub
co-authored by tony-poisson
parent cb87c83b11
commit 0990bd8db2
3 changed files with 45 additions and 0 deletions
@@ -0,0 +1,8 @@
inertia:
# The root Twig template used to render the full HTML page on first visit.
root_view: 'base.html.twig'
# Enable Server-Side Rendering via an external Node.js SSR server.
# Requires symfony/http-client: composer require symfony/http-client
ssr_enabled: false
ssr_url: 'http://127.0.0.1:13714'
+24
View File
@@ -0,0 +1,24 @@
{
"bundles": {
"Nytodev\\InertiaBundle\\InertiaBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"add-lines": [
{
"file": "templates/base.html.twig",
"content": " {{ inertiaHead(page) }}",
"position": "after_target",
"target": "{% block javascripts %}",
"warn_if_missing": true
},
{
"file": "templates/base.html.twig",
"content": " {{ inertia(page) }}",
"position": "after_target",
"target": "{% block body %}",
"warn_if_missing": true
}
]
}
@@ -0,0 +1,13 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> Welcome to <options=bold>nytodev/inertia-bundle</> <bg=blue;fg=white> </>
<bg=blue;fg=white> </>
<fg=blue;options=bold>Next steps:</>
1. Install your frontend stack (React, Vue or Svelte):
<comment>npm install @inertiajs/react</> (or vue / svelte)
2. Adjust <comment>config/packages/inertia.yaml</> to match your setup.
3. Read the documentation:
<comment>https://github.com/nytodev/inertia-bundle</>