@helloanselm,
Thanks for the reply! You are correct, I am using this Kirby +Vue.js Starterkit.
In my /vue-nuxt
folder, I have these environment files:
.env
NUXT_ENV_BASE_URL=/
NUXT_ENV_KIRBY_URL=http://127.0.0.1:8000
.env.production
NUXT_ENV_BASE_URL=/
NUXT_ENV_KIRBY_URL=https://hovercraftstudio.com
In the root folder, here is my kirby.config.js
file:
module.exports = {
serve: true,
host: '127.0.0.1',
port: 8000,
inject: true,
base: __dirname + '/kirby',
assetsDir: 'vue-assets',
indexPath: 'site/plugins/kirby-vue-starterkit/vue-index.php',
start: php => {
php.createServer({
hostname: module.exports.host,
port: module.exports.port,
base: module.exports.base,
router: 'kirby/router.php'
})
console.log(`i Kirby running at: http://${module.exports.host}:${module.exports.port}`)
},
stop: php => php.close(),
clean: fs => {
fs.removeSync(module.exports.base + '/' + module.exports.assetsDir)
fs.removeSync(module.exports.base + '/' + module.exports.indexPath)
}
}
I’m not sure how to tell which version of Kirby I am running. I know it is 3.x something, hah.
Also, worth noting, when I run php -v
in my terminal, I am using PHP 7.3.11
I have tried using a MAMP trial and installing PHP@8.1 with Homebrew but nothing worked, so I am back on 7.3.11 and not using MAMP.
If there are any other files you think I should upload to make debugging easier, just let me know. The GitHub repo for this project has changed a bit in the past 1-2 years since I first started with it so it is not using the exact 1:1 files, mainly the nuxt.config
and plugins/kirby-api.js
files don’t appear to exist in the latest repo.
Biggest note here, I haven’t modified anything over the past year in any of the api or config files, so this must be some automated / version update under the hood that I don’t know about.
Thank you all for your time, much appreciated!