How to deploy a google workspace addon using this?
jryebread opened this issue · comments
Hey there, great project, I'm a little confused on how this would work as a google sheets addon, because if my server isnt running, the sidebar panel shows as not found 'https://localhost:3000/sidebar-about-page-impl.html is not found"
So does this mean I need to host the project on a server somewhere and change it from localhost to that server ip?
Any other tips/guide for hosting this as a google sheets addon on the workspace marketplace?
That's just for local development. Run npm run deploy
and your react app will be deployed in the Google environment.
You can check out more details in the readme here and in Google's docs.
@enuchi Pls help
Do you know how to update the installation message that comes up after the published addon is installed? I get this weird one from google I dont think I defined this anywhere!
Also after installation I have to refresh the whole page for the menu bar to show up, otherwise all i see is the help page, do you know why that is? :( I tested it with other extensions and they instantly show the menu bars.
@jryebread I doubt the installation message can be customized -- that seems like google boilerplate.
You can look at onInstall(e)
here: https://developers.google.com/apps-script/guides/triggers#oninstalle
You could just call onOpen
from it, but note some of the caveats in the docs linked on where the add on is installed.
/**
* The event handler triggered when installing the add-on.
* @param {Event} e The onInstall event.
* @see https://developers.google.com/apps-script/guides/triggers#oninstalle
*/
function onInstall(e) {
onOpen(e);
}
Just googling it...
https://spreadsheet.dev/custom-sidebar-in-google-sheets
See "Setting a custom title for the sidebar in Google Sheets"