Skip to content
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

Fix: FRAMEWORK_STATIC_ASSETS_PATH not being used in client side #704

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Monar
Copy link
Contributor

@Monar Monar commented Nov 13, 2019

Currently FRAMEWORK_STATIC_ASSETS_PATH was not utilized in all places.
If set the server side would server assets under correct path but client side code would ignore this variable and fetch from default /_static code path.

This change fixes this problem by setting proper assetsBasePath utilizing FRAMEWORK_STATIC_ASSETS_PATH variable.

@Monar Monar changed the title fix: FRAMEWORK_STATIC_ASSETS_PATH not being used in server path code Fix: FRAMEWORK_STATIC_ASSETS_PATH not being used in client side Nov 13, 2019
@Monar
Copy link
Contributor Author

Monar commented Nov 14, 2019

So, ci fails due to eslint getting excessive parameter, eg.:


Done in 49.94s.
--
  | yarn run v1.16.0
  | $ eslint . --cwd=fusion-plugin-service-worker
  | Invalid option '--cwd' - perhaps you meant '-c'?

So as I understand I just wait for the fix, yes ?

@Monar Monar force-pushed the fix-framework-static-assets-path branch 3 times, most recently from c1bbf8e to d221804 Compare November 19, 2019 15:51
@Monar Monar force-pushed the fix-framework-static-assets-path branch from d221804 to f7a3104 Compare November 19, 2019 23:18
@chrisdothtml
Copy link
Member

So, ci fails due to eslint getting excessive parameter

@Monar sorry for the delay! We had some issues in our CI logic that have now been resolved

@derekju derekju requested a review from rtsao December 17, 2019 21:31
@rtsao
Copy link
Member

rtsao commented Jan 2, 2020

FWIW I think FRAMEWORK_STATIC_ASSET_PATH is kind of undocumented in favor of using either CDN_URL or ROUTE_PREFIX. I think this still exists only for legacy reasons.

I wonder if we should just remove this since I don't think /_static is meant to be configurable.

@rtsao
Copy link
Member

rtsao commented Jan 8, 2020

Yeah, there's a few of spots where /_static is hardcoded, so I don't think even with this change this will work properly

Copy link
Contributor

@KevinGrandon KevinGrandon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to request changes based on rtsao's latest comment. Seems like this shouldn't be configurable. Is it causing problems somehow?

@CLAassistant
Copy link

CLAassistant commented Jul 29, 2021

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 5 committers have signed the CLA.

✅ lhorie
✅ chrisdothtml
✅ ganemone
❌ Monar
❌ albertywu
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants