diff --git a/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml b/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml new file mode 100644 index 000000000..9ad87e914 --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1/config/packages/mercuryseries_inertia.yaml @@ -0,0 +1,38 @@ +mercuryseries_inertia: + # |-------------------------------------------------------------------------- + # | Server-side Rendering + # |-------------------------------------------------------------------------- + # | + # | These options configures if and how Inertia uses Server Side Rendering + # | to pre-render the initial visits made to your application's pages. + # | + # | You can specify a custom SSR bundle path, or omit it to let Inertia + # | try and automatically detect it for you. + # | + # | Do note that enabling these options will NOT automatically make SSR work, + # | as a separate rendering service needs to be available. To learn more, + # | please visit https://inertiajs.com/server-side-rendering + ssr: + enabled: false + url: 'http://127.0.0.1:13714/render' + # bundle: '%kernel.project_dir%/public/build-ssr/ssr.js' + + # |-------------------------------------------------------------------------- + # | CSRF Protection + # |-------------------------------------------------------------------------- + # | CSRF (Cross-Site Request Forgery) protection is a security measure + # | to prevent malicious websites from making requests on behalf of users + # | without their consent. + # | + # | Inertia provides CSRF protection by configuring CSRF tokens and cookies. + # | The CSRF cookie is used to store the CSRF token, and it is sent with each + # | request made to the application. The CSRF token is verified on the server + # | side to ensure the authenticity of the request. + # | + # | To learn more, please visit https://inertiajs.com/csrf-protection + csrf_cookie: + expire: 0 + path: / + # domain: null + secure: true + sameSite: lax diff --git a/mercuryseries/inertia-bundle/0.1/manifest.json b/mercuryseries/inertia-bundle/0.1/manifest.json new file mode 100644 index 000000000..11bae400b --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1/manifest.json @@ -0,0 +1,9 @@ +{ + "bundles": { + "MercurySeries\\Bundle\\InertiaBundle\\MercurySeriesInertiaBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "gitignore": ["/%PUBLIC_DIR%/build-ssr/"] +} diff --git a/mercuryseries/inertia-bundle/0.1/post-install.txt b/mercuryseries/inertia-bundle/0.1/post-install.txt new file mode 100644 index 000000000..c2c154ba6 --- /dev/null +++ b/mercuryseries/inertia-bundle/0.1/post-install.txt @@ -0,0 +1,10 @@ + + Getting started using mercuryseries/inertia-bundle + + + Configure your transformations: + 1. React stack: symfony console inertia:install react --ssr --bundler=webpack for Webpack or symfony console inertia:install react --ssr --bundler=vite for Vite. + 2. Vue stack: symfony console inertia:install vue --ssr --bundler=webpack for Webpack or symfony console inertia:install vue --ssr --bundler=vite for Vite. + 3. Adjust the configuration in %CONFIG_DIR%/packages/mercuryseries_inertia.yaml according to your needs. + 4. Start the development server: npm run dev-server. + 5. Start coding into assets/js/pages/