Change Aurelia base url

Hey there, I’m completely new to Aurelia, and I’m trying to make it work with Django, but i’m having some trouble getting Aurelia configs right.

in Django I’ve defined a static url and static files dir :

STATIC_URL = '/webapp/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'webapp')]

I generated my aurelia app with au new (default), then in index.html changed the vendor-bundle.js link to accommodate my static_url. I then do au build and run the server. It loads the index.html, and the vendor-bundle.js, but then the app-bundle.js it tries to load without the static_url and fails. I’ve tried to put the “baseUrl”: <static_url> in the aurelia.json, but still no success. I would like to know how to change the base path in aurelia. Thanks in advanced.

You’ll have to modify aurelia_project.json as well to accomodate for baseUrl

check out the docs

Thanks I think I got it, however it feels kind of weird because I’m pointing at the scripts folder and not a the actual base path of the project, that is what I was doing wrong the last time.
“baseUrl”: “webapp/basePath”
instead of:
“baseUrl”: “webapp/basePath/scripts”

Anyway, it seems to be working fine now. Thanks for the help :wink: