Skip to content

Commit 66be741

Browse files
authored
Remove deprecated package.exclude syntax + small fixes
Saw this was still using `package.exclude` but this is deprecated now. Because this is intended for new projects, I also bumped the php version to 8.0
1 parent 14ca0c5 commit 66be741

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

config/serverless.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@ provider:
1111

1212
package:
1313
# Directories to exclude from deployment
14-
exclude:
15-
- node_modules/**
16-
- public/storage
17-
- resources/assets/**
18-
- storage/**
19-
- tests/**
14+
patterns:
15+
- !node_modules/**
16+
- !public/storage
17+
- !resources/assets/**
18+
- !storage/**
19+
- !tests/**
2020

2121
functions:
2222
# This function runs the Laravel website/API
2323
web:
2424
handler: public/index.php
2525
timeout: 28 # in seconds (API Gateway has a timeout of 29 seconds)
2626
layers:
27-
- ${bref:layer.php-74-fpm}
27+
- ${bref:layer.php-80-fpm}
2828
events:
29-
- httpApi: '*'
29+
- httpApi: '*'
3030
# This function lets us run artisan commands in Lambda
3131
artisan:
3232
handler: artisan
3333
timeout: 120 # in seconds
3434
layers:
35-
- ${bref:layer.php-74} # PHP
35+
- ${bref:layer.php-80} # PHP
3636
- ${bref:layer.console} # The "console" layer
3737

3838
plugins:

0 commit comments

Comments
 (0)