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

[FS-211325]: React Rails integration gem changes to support dynamic node switch #1

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

vishwasraj-thyagaraj
Copy link
Collaborator

@vishwasraj-thyagaraj vishwasraj-thyagaraj commented Sep 27, 2024

Story: https://freshworks.freshrelease.com/ws/FS/tasks/FS-211325

Changes made

  1. Support dynamic node version switch during runtime using nvmrc file present in the frontend folder.
  2. rails helper tweaks
  3. directory changes to support all files related to react to be present in a standalone folder

@vishwasraj-thyagaraj vishwasraj-thyagaraj changed the title Stellar vite react rails fix [FS-211325]: Vite Rails integration gem changes to support dynamic node switch Sep 30, 2024
@vishwasraj-thyagaraj vishwasraj-thyagaraj changed the title [FS-211325]: Vite Rails integration gem changes to support dynamic node switch [FS-211325]: React Rails integration gem changes to support dynamic node switch Sep 30, 2024
def config_defaults(asset_host: nil, mode: ENV.fetch('RACK_ENV', 'development'), root: Dir.pwd)
{
'asset_host' => option_from_env('asset_host') || asset_host,
'config_path' => option_from_env('config_path') || DEFAULT_CONFIG.fetch('config_path'),
'mode' => option_from_env('mode') || mode,
'root' => option_from_env('root') || root,
'root' => option_from_env('root') || Dir.pwd + '/frontend-react',

Choose a reason for hiding this comment

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

Not possible for us to pass as a configuration or some input, to skip hard coding here ?

Copy link

@vigneshk-fd vigneshk-fd left a comment

Choose a reason for hiding this comment

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

Changes requested

@vishwasraj-thyagaraj vishwasraj-thyagaraj force-pushed the stellar_vite_react_rails_fix branch from 0aba655 to ec81d60 Compare October 4, 2024 13:00
@vishwasraj-thyagaraj vishwasraj-thyagaraj force-pushed the stellar_vite_react_rails_fix branch from 2ea4616 to cb9e513 Compare October 15, 2024 09:15
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.

2 participants