Target root content folder from a subdirectory site

Hi,

I got a dev site for testing purpose in a subfolder and I would like to use the root content folder instead of dev/content.

πŸ“ assets
πŸ“ content <-- I want to use this as content folder
πŸ“‚ dev
  πŸ“ assets
  πŸ“ content <-- instead of this one
  πŸ“„ index.php
  πŸ“ kirby
  πŸ“ media
  πŸ“ site
πŸ“„ index.php
πŸ“ kirby
πŸ“ media
πŸ“ site

I tried to edit the configuration of dev/index.php as above, but it’s not working:

<?php

require __DIR__ . '/kirby/bootstrap.php';

$kirby = new Kirby([
  'roots' => [
    'content' => __DIR__ . '/../content'
  ]
]);

echo (new Kirby)->render();

What am I doing wrong? What do I need to do to achieve this?

Must be $kirby->render() otherwise you create a new instance instead of using the modified one.

Thank you so much! :clap: