Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shiki-tak committed Jul 18, 2024
1 parent 7f235f5 commit eae7475
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
working-directory: flutter_bird_app
run: |
flutter build web
cp .env build/web/
mkdir -p build/web/assets
cp .env build/web/assets/
- name: Set GitHub Deployment Environment
id: github_deployment_environment
Expand Down
2 changes: 1 addition & 1 deletion flutter_bird_app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:flutter_line_liff/flutter_line_liff.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();
await dotenv.load(fileName: ".env");
await dotenv.load(fileName: "assets/.env");

print("Starting application...");
final bool isInClient = FlutterLineLiff().isInClient;
Expand Down
1 change: 0 additions & 1 deletion flutter_bird_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ flutter:
assets:
- images/
- assets/
- .env
fonts:
- family: flappy
fonts:
Expand Down

0 comments on commit eae7475

Please sign in to comment.