-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build not working #1
Comments
It failed at
export function getRootPath(): string {
const path = window.location.pathname;
const parts = path.split('/');
const adminIndex = parts.indexOf('admin');
const rootPath = parts.slice(0, adminIndex).join('/') + '/';
return rootPath;
}
export function getPublicURL(): string {
const path = window.location.href;
const parts = path.split('/');
const adminIndex = parts.indexOf('admin');
const rootPath = parts.slice(0, adminIndex).join('/') + '/';
return rootPath;
}
By the way, thank @stouch for writing this extension. It saved my day. |
Thank you very much for your answer, |
Just opened a pull request https://github.com/stouch/directus-interface-uuid-file-image/pull/4/files#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519 with that solution in. |
Thanks @buzzeins ! I merged it 👍 |
First of all, congratulations and thanks for the work done, nevertheless, I can't execute the build command
npx directus-extension build :
The text was updated successfully, but these errors were encountered: