#How to change the Application URL

9 messages · Page 1 of 1 (latest)

sudden ibex
#

Right now my application URL is set as app://, how do I change this? also, for the purposes of deeplinking does this need to be unique?

kind wharf
sudden ibex
#

@kind wharf thanks for the reply -- a few follow up thoughts...

#

right now it appears electron is serving everything from app:// e.g., app://<my_page>.html

#

There is a loadURL call in main; mainWindow.loadURL('app://./_app.html'), but if I switch it to mainWindow.loadURL('designer-toyware://./_app.html' the application fails to launch

#

I don't understand what is setting app://, when running in dev it is localhost

#

I think it may be related to the application getting built into an app directory and then calling serve({ directory: 'app' });. So I probably need to change that build directory if I want to have everything serve from designer-toyware://

#

any idea where that is configured?

sudden ibex
#

I think it is in some NextJS config .. I am using NextJS