-
-
Save mattlenz/dfabc78cab0f84d2d94731a700d094bb to your computer and use it in GitHub Desktop.
Kirby Nuxt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KIRBY_URL=http://localhost:8888 | |
KIRBY_USERNAME= | |
KIRBY_PASSWORD= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
'api' => [ | |
'basicAuth' => true, | |
'allowInsecure' => true | |
] | |
]; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('dotenv').config() | |
module.exports = { | |
env: { | |
KIRBY_URL: process.env.KIRBY_URL | |
}, | |
modules: [ | |
'@nuxtjs/axios', | |
'@nuxtjs/proxy' | |
], | |
proxy: { | |
'/api': { | |
target: process.env.KIRBY_URL, | |
auth: [process.env.KIRBY_USERNAME, process.env.KIRBY_PASSWORD].join(':') | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment