LoginSignup
2
2

More than 3 years have passed since last update.

NuxtとGraphQLとAWS(Amplify, appsync, dynamodb, cognito, s3....)を用いてWebアプリチュートリアルPart4

Posted at

概要

やること

  1. 作成したブログをネットに公開する。

作成したブログをネットに公開する。

ターミナルで以下のコマンドを実行しましょう

target: server(デフォルト値)

nuxt build - 本番用の webpack を使用してアプリケーションをビルドおよび最適化します。

target: static

nuxt generate -(必要に応じて)アプリケーションをビルドし、すべてのルートを HTML ファイルとして生成し、dist/ ディレクトリに静的にエクスポートします(静的ホスティングに使用されます)。

公式抜粋
staticとserverで違うようです。

% npm run generate
% amplify hosting add
? Select the plugin module to execute Hosting with Amplify Console (Managed hosting with custom domai
ns, Continuous deployment)
? Choose a type Manual deployment

You can now publish your app using the following command:

Command: amplify publish

amplify publishコマンドを実行しろというメッセージがあるので実行します

% amplify publish
? Are you sure you want to continue? Yes

しばらくすると、ホスティング完了です。

https://***************.amplify.com

urlが表示されるはずです。✌️

参考サイト
- nuxt公式サイト

2
2
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
2
2