0
0

AuraからLWRに移行する

Last updated at Posted at 2022-02-13

LWR

手順が紹介されています。今のところ情報が少ない。

  1. 新しいLWRサイトと空のページを作成します

  2. 既存のカスタムLWCを新しいページに移動します

  3. 古いサイトで使用していたサポートされていないLightningLWCコンポーネントの代わりにLWCを作成します。何か違うものが必要な場合は、UI / UXを変更する良い機会です

4.テストと改良

5.カスタムドメインを変更して公開する

Migrate from Aura to LWR

Build Your Own(LWR)は、その名前が示すように、すぐに使用できる最も重要なページとコンポーネントのみを提供する最小限のテンプレートです。
LWRテンプレートのページとコンポーネント

参考になりそうな質問と回答

Getting Error: The selection of publish items is invalid.

image.png

As per Salesforce, If we try to run 2 or more publish commands at the same time (maybe within 1-5 secs timeframe), there is a possibility that one of the publish might get struck. So they suggested not to publish 2 sites at the same time.

We had few LWCs which are reused in 2 different Experience Cloud Sites, so we configured our pipeline to publish both the sites after deployment which caused this issue. We raised a case to Salesforce to unblock it.

LWR

Google モバイル フレンドリー テストで本番環境の LWR サイト ページが「ページはモバイルでは使用できない」として分類されるという、非常に奇妙な問題が発生しています。Google はデスクトップ版でページをレンダリングします。実際には応答性が高く、モバイルでは問題なく表示されます。そしてここでさらに奇妙な部分が来ます。まったく同じコードでサンドボックス ページをテストすると、すべて問題がないことがわかります。そこで Google はモバイル版をレンダリングします。

エラー

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0