diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7096706..c49fc4f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,8 +19,8 @@ jobs: strategy: fail-fast: false matrix: - php-versions: ['8.1', '8.2'] - neos-versions: ['8.3'] + php-versions: ['8.3'] + neos-versions: ['9.0'] dependencies: ['highest'] defaults: diff --git a/README.md b/README.md index 2efad18..2e51019 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ # Networkteam.Neos.Vite +## Compatibility + +| NeosCMS | Plugin | +|---------|--------| +| >= 9.0 | 0.4.x | +| 8.x | 0.3.x | + ## Installation Go to your site package: diff --git a/Resources/Private/Fusion/Root.fusion b/Resources/Private/Fusion/Root.fusion index 85ef3fa..8655b73 100644 --- a/Resources/Private/Fusion/Root.fusion +++ b/Resources/Private/Fusion/Root.fusion @@ -3,7 +3,7 @@ prototype(Networkteam.Neos.Vite:Asset) { # We get the current site package key either from a context variable (e.g. for Monocle) or the current node. # It is used to interpolate the outputPathPattern and select a different Vite server configuration (e.g. for multi-site setups). - sitePackageKey = ${sitePackageKey || node.context.currentSite.siteResourcesPackageKey} + sitePackageKey = ${sitePackageKey || Neos.Site.findBySiteNode(site).siteResourcesPackageKey} outputPathPattern = 'resource://{sitePackageKey}/Public/Dist' manifest = '.vite/manifest.json' diff --git a/composer.json b/composer.json index f38cb5c..2693e17 100644 --- a/composer.json +++ b/composer.json @@ -3,9 +3,13 @@ "type": "neos-package", "description": "Integrate Vite for asset bundling into Neos CMS", "require": { - "neos/neos": "^8 || ^9", + "neos/neos": "^9.0", "ext-json": "*" }, + "require-dev": { + "neos/contentgraph-doctrinedbaladapter": "*" + }, + "license": "MIT", "autoload": { "psr-4": { "Networkteam\\Neos\\Vite\\": "Classes"